~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: James Henstridge
  • Date: 2006-10-04 07:12:39 UTC
  • mto: (2072.1.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2073.
  • Revision ID: james@jamesh.id.au-20061004071239-bb32b93e159b7899
get rid of the recurse argument to get_user_option()

Show diffs side-by-side

added added

removed removed

Lines of Context:
664
664
        self.assertEqual('local',
665
665
                         self.my_config.get_user_option('user_local_option'))
666
666
 
667
 
    def test_get_user_option_non_recursive(self):
668
 
        self.get_branch_config('/a/c')
669
 
        # Doesn't see values from "/a/" config:
670
 
        self.assertEqual(None,
671
 
                         self.my_config.get_user_option('user_local_option',
672
 
                                                        recurse=False))
673
 
        # Sees values from global config:
674
 
        self.assertEqual('vim',
675
 
                         self.my_config.get_user_option('editor',
676
 
                                                        recurse=False))
677
 
 
678
667
    def test_post_commit_default(self):
679
668
        self.get_branch_config('/a/c')
680
669
        self.assertEqual('bzrlib.tests.test_config.post_commit',