~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-08-20 08:02:26 UTC
  • mfrom: (4584.3.32 apport)
  • Revision ID: pqm@pqm.ubuntu.com-20090820080226-97krol4wohcyh2ba
(mbp) re-add apport support

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