~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Martin
  • Date: 2009-11-07 08:02:13 UTC
  • mfrom: (4789 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4809.
  • Revision ID: gzlist@googlemail.com-20091107080213-jad185091b3l69ih
Merge bzr.dev 4789 to resolve conflict from the disabling of plink auto-detection, and relocate NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
320
320
    def setUp(self):
321
321
        super(TestConfigPath, self).setUp()
322
322
        os.environ['HOME'] = '/home/bogus'
 
323
        os.environ['XDG_CACHE_DIR'] = ''
323
324
        if sys.platform == 'win32':
324
325
            os.environ['BZR_HOME'] = \
325
326
                r'C:\Documents and Settings\bogus\Application Data'
347
348
        self.assertEqual(config.authentication_config_filename(),
348
349
                         self.bzr_home + '/authentication.conf')
349
350
 
 
351
    def test_xdg_cache_dir(self):
 
352
        self.assertEqual(config.xdg_cache_dir(),
 
353
            '/home/bogus/.cache')
 
354
 
350
355
 
351
356
class TestIniConfig(tests.TestCase):
352
357