~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.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:
920
920
        self.assertIsInstance(bzrlib.bzrdir.BzrDir.open('b')._format,
921
921
                              bzrlib.bzrdir.BzrDirFormat6)
922
922
 
 
923
    def test_make_branch_and_mutable_tree(self):
 
924
        # we should be able to get a new branch and a mutable tree from
 
925
        # TestCaseWithTransport
 
926
        tree = self.make_branch_and_memory_tree('a')
 
927
        self.assertIsInstance(tree, bzrlib.memorytree.MemoryTree)
 
928
 
923
929
 
924
930
class TestSFTPMakeBranchAndTree(TestCaseWithSFTPServer):
925
931