/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Martin Pool
  • Date: 2007-10-08 07:29:57 UTC
  • mfrom: (2894 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2895.
  • Revision ID: mbp@sourcefrog.net-20071008072957-uhm1gl1mqcsdc377
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
887
887
        self.my_config.set_user_option('foo', 'qux')
888
888
        self.assertEqual(self.my_config.get_user_option('foo'), 'baz')
889
889
        
 
890
    def test_get_bzr_remote_path(self):
 
891
        my_config = config.LocationConfig('/a/c')
 
892
        self.assertEqual('bzr', my_config.get_bzr_remote_path())
 
893
        my_config.set_user_option('bzr_remote_path', '/path-bzr')
 
894
        self.assertEqual('/path-bzr', my_config.get_bzr_remote_path())
 
895
        os.environ['BZR_REMOTE_PATH'] = '/environ-bzr'
 
896
        self.assertEqual('/environ-bzr', my_config.get_bzr_remote_path())
 
897
 
890
898
 
891
899
precedence_global = 'option = global'
892
900
precedence_branch = 'option = branch'