~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: Martin Pool
  • Date: 2010-01-12 01:44:13 UTC
  • mto: (4634.119.3 2.0)
  • mto: This revision was merged to the branch mainline in revision 4951.
  • Revision ID: mbp@sourcefrog.net-20100112014413-uw90vrssc3trlzmt
Refuse to build with pyrex 0.9.4*

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