~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Martin Pool
  • Date: 2009-08-20 04:53:23 UTC
  • mto: This revision was merged to the branch mainline in revision 4632.
  • Revision ID: mbp@sourcefrog.net-20090820045323-4hsicfa87pdq3l29
Correction to xdg_cache_dir and add a simple test

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