~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_config.py

  • Committer: John Arbash Meinel
  • Date: 2006-06-30 17:25:27 UTC
  • mto: (1711.4.39 win32-accepted)
  • mto: This revision was merged to the branch mainline in revision 1836.
  • Revision ID: john@arbash-meinel.com-20060630172527-6d36c06a13dc7110
always close files, minor PEP8 cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
from bzrlib.branch import Branch
28
28
from bzrlib.bzrdir import BzrDir
29
29
import bzrlib.errors as errors
30
 
from bzrlib.tests import TestCase, TestCaseInTempDir, TestCaseWithTransport
 
30
from bzrlib.tests import TestCase, TestCaseInTempDir
31
31
 
32
32
 
33
33
sample_long_alias="log -r-15..-1 --line"
321
321
                                          'utf-8')])
322
322
 
323
323
 
324
 
class TestBranchConfig(TestCaseWithTransport):
 
324
class TestBranchConfig(TestCaseInTempDir):
325
325
 
326
326
    def test_constructs(self):
327
327
        branch = FakeBranch()
348
348
        my_config2 = b2.get_config()
349
349
        self.assertEqual(my_config2.get_user_option('wacky'), 'unlikely')
350
350
 
351
 
    def test_has_explicit_nickname(self):
352
 
        b = self.make_branch('.')
353
 
        self.assertFalse(b.get_config().has_explicit_nickname())
354
 
        b.nick = 'foo'
355
 
        self.assertTrue(b.get_config().has_explicit_nickname())
356
 
 
357
351
 
358
352
class TestGlobalConfigItems(TestCase):
359
353