~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to zap.py

  • Committer: Aaron Bentley
  • Date: 2010-05-11 16:53:57 UTC
  • Revision ID: aaron@aaronbentley.com-20100511165357-1e0btf3p3xebormz
Fix zap tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
 
59
59
        def make_checkout(self):
60
60
            wt = BzrDir.create_standalone_workingtree('source')
61
 
            os.mkdir('checkout')
62
 
            checkout = BzrDirMetaFormat1().initialize('checkout')
63
 
            BranchReferenceFormat().initialize(checkout, wt.branch)
64
 
            return checkout.create_workingtree()
 
61
            return wt.branch.create_checkout('checkout', lightweight=True)
65
62
 
66
63
        def make_checkout2(self):
67
64
            wt = self.make_checkout()
68
65
            wt2 = wt.branch.bzrdir.sprout('source2').open_workingtree()
69
 
            os.mkdir('checkout2')
70
 
            checkout = BzrDirMetaFormat1().initialize('checkout2')
71
 
            BranchReferenceFormat().initialize(checkout, wt2.branch)
72
 
            return checkout.create_workingtree()
 
66
            return wt2.branch.create_checkout('checkout2', lightweight=True)
73
67
 
74
68
        def test_is_checkout(self):
75
69
            self.assertRaises(NotCheckout, zap, '.')