~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Aaron Bentley
  • Date: 2007-01-17 16:13:50 UTC
  • mfrom: (2236 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2240.
  • Revision ID: abentley@panoramicfeedback.com-20070117161350-z0poe4762mzt2mlb
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
467
467
        a branch and checking no directory was created at its relpath.
468
468
        """
469
469
        tree = self.make_branch_and_memory_tree('dir')
470
 
        self.failIfExists('dir')
 
470
        # Guard against regression into MemoryTransport leaking
 
471
        # files to disk instead of keeping them in memory.
 
472
        self.failIf(osutils.lexists('dir'))
471
473
        self.assertIsInstance(tree, memorytree.MemoryTree)
472
474
 
473
475
    def test_make_branch_and_memory_tree_with_format(self):
475
477
        format = bzrdir.BzrDirMetaFormat1()
476
478
        format.repository_format = repository.RepositoryFormat7()
477
479
        tree = self.make_branch_and_memory_tree('dir', format=format)
478
 
        self.failIfExists('dir')
 
480
        # Guard against regression into MemoryTransport leaking
 
481
        # files to disk instead of keeping them in memory.
 
482
        self.failIf(osutils.lexists('dir'))
479
483
        self.assertIsInstance(tree, memorytree.MemoryTree)
480
484
        self.assertEqual(format.repository_format.__class__,
481
485
            tree.branch.repository._format.__class__)