~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-09-16 14:03:54 UTC
  • mfrom: (2017.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20060916140354-1a9932f525bb7182
(robertc) Add MemoryTree and TreeBuilder test helpers. Also test behavior of transport.has('/') which caused failures in this when merging, and as a result cleanup the sftp path normalisation logic.

Show diffs side-by-side

added added

removed removed

Lines of Context:
43
43
import time
44
44
 
45
45
 
 
46
from bzrlib import memorytree
46
47
import bzrlib.branch
47
48
import bzrlib.bzrdir as bzrdir
48
49
import bzrlib.commands
1318
1319
        made_control = self.make_bzrdir(relpath, format=format)
1319
1320
        return made_control.create_repository(shared=shared)
1320
1321
 
 
1322
    def make_branch_and_memory_tree(self, relpath):
 
1323
        """Create a branch on the default transport and a MemoryTree for it."""
 
1324
        b = self.make_branch(relpath)
 
1325
        return memorytree.MemoryTree.create_on_branch(b)
 
1326
 
1321
1327
    def make_branch_and_tree(self, relpath, format=None):
1322
1328
        """Create a branch on the transport and a tree locally.
1323
1329
 
1489
1495
                   'bzrlib.tests.test_lockdir',
1490
1496
                   'bzrlib.tests.test_lockable_files',
1491
1497
                   'bzrlib.tests.test_log',
 
1498
                   'bzrlib.tests.test_memorytree',
1492
1499
                   'bzrlib.tests.test_merge',
1493
1500
                   'bzrlib.tests.test_merge3',
1494
1501
                   'bzrlib.tests.test_merge_core',
1527
1534
                   'bzrlib.tests.test_transform',
1528
1535
                   'bzrlib.tests.test_transport',
1529
1536
                   'bzrlib.tests.test_tree',
 
1537
                   'bzrlib.tests.test_treebuilder',
1530
1538
                   'bzrlib.tests.test_tsort',
1531
1539
                   'bzrlib.tests.test_tuned_gzip',
1532
1540
                   'bzrlib.tests.test_ui',