/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 brzlib/tests/test_config.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:06:19 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521180619-5qoo0470asgdnljt
Fix more tests (all?)

Show diffs side-by-side

added added

removed removed

Lines of Context:
561
561
        self.overrideEnv('XDG_CACHE_HOME', '')
562
562
        if sys.platform == 'win32':
563
563
            self.overrideEnv(
564
 
                'BRZ_HOME', r'C:\Documents and Settings\bogus\Application Data')
565
 
            self.bzr_home = \
566
 
                'C:/Documents and Settings/bogus/Application Data/bazaar/2.0'
 
564
                'BRZ_HOME',
 
565
                r'C:\Documents and Settings\bogus\Application Data')
 
566
            self.brz_home = \
 
567
                'C:/Documents and Settings/bogus/Application Data/breezy'
567
568
        else:
568
 
            self.bzr_home = '/home/bogus/.bazaar'
 
569
            self.brz_home = '/home/bogus/.config/breezy'
569
570
 
570
571
    def test_config_dir(self):
571
 
        self.assertEqual(config.config_dir(), self.bzr_home)
 
572
        self.assertEqual(config.config_dir(), self.brz_home)
572
573
 
573
574
    def test_config_dir_is_unicode(self):
574
575
        self.assertIsInstance(config.config_dir(), unicode)
575
576
 
576
577
    def test_config_filename(self):
577
578
        self.assertEqual(config.config_filename(),
578
 
                         self.bzr_home + '/bazaar.conf')
 
579
                         self.brz_home + '/bazaar.conf')
579
580
 
580
581
    def test_locations_config_filename(self):
581
582
        self.assertEqual(config.locations_config_filename(),
582
 
                         self.bzr_home + '/locations.conf')
 
583
                         self.brz_home + '/locations.conf')
583
584
 
584
585
    def test_authentication_config_filename(self):
585
586
        self.assertEqual(config.authentication_config_filename(),
586
 
                         self.bzr_home + '/authentication.conf')
 
587
                         self.brz_home + '/authentication.conf')
587
588
 
588
589
    def test_xdg_cache_dir(self):
589
590
        self.assertEqual(config.xdg_cache_dir(),
1721
1722
        self.assertEqual('bzr', my_config.get_bzr_remote_path())
1722
1723
        my_config.set_user_option('bzr_remote_path', '/path-bzr')
1723
1724
        self.assertEqual('/path-bzr', my_config.get_bzr_remote_path())
1724
 
        self.overrideEnv('BRZ_REMOTE_PATH', '/environ-bzr')
 
1725
        self.overrideEnv('BZR_REMOTE_PATH', '/environ-bzr')
1725
1726
        self.assertEqual('/environ-bzr', my_config.get_bzr_remote_path())
1726
1727
 
1727
1728