~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_add.py

  • Committer: Jelmer Vernooij
  • Date: 2012-01-27 22:09:19 UTC
  • mto: This revision was merged to the branch mainline in revision 6463.
  • Revision ID: jelmer@samba.org-20120127220919-tk0fdybtfwi177c6
Use config stacks in a few more places in the test suite.

Show diffs side-by-side

added added

removed removed

Lines of Context:
247
247
        self.build_tree_contents([('small.txt', '0\n')])
248
248
        self.build_tree_contents([('big.txt', '01234567890123456789\n')])
249
249
        self.build_tree_contents([('big2.txt', '01234567890123456789\n')])
250
 
        tree.branch.get_config().set_user_option('add.maximum_file_size', 5)
 
250
        tree.branch.get_config_stack().set('add.maximum_file_size', 5)
251
251
        out = self.run_bzr('add')[0]
252
252
        results = sorted(out.rstrip('\n').split('\n'))
253
253
        self.assertEquals(['adding small.txt'], results)