~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Aaron Bentley
  • Date: 2006-08-24 13:48:07 UTC
  • mto: (1910.2.43 format-bumps)
  • mto: This revision was merged to the branch mainline in revision 1997.
  • Revision ID: abentley@panoramicfeedback.com-20060824134807-9067153963809b6c
Fix default format test

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
class TestDefaultFormat(TestCase):
45
45
 
46
46
    def test_get_set_default_format(self):
 
47
        private_default = repository._default_format.__class__
47
48
        old_format = repository.RepositoryFormat.get_default_format()
48
 
        self.assertTrue(isinstance(old_format, repository.RepositoryFormatKnit1))
 
49
        self.assertTrue(isinstance(old_format, private_default))
49
50
        repository.RepositoryFormat.set_default_format(SampleRepositoryFormat())
50
51
        # creating a repository should now create an instrumented dir.
51
52
        try: