~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_re_sign.py

  • Committer: Patch Queue Manager
  • Date: 2012-03-06 19:49:19 UTC
  • mfrom: (6472.2.6 use-bzr-controldir)
  • Revision ID: pqm@pqm.ubuntu.com-20120306194919-kt7mj6xmhifsgees
(jelmer) Use bzrlib.controldir for generic access to control directories,
 rather than bzrlib.bzrdir. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    gpg,
24
24
    tests,
25
25
    )
26
 
from bzrlib.bzrdir import BzrDir
 
26
from bzrlib.controldir import ControlDir
27
27
from bzrlib.testament import Testament
28
28
 
29
29
 
39
39
        self.overrideAttr(gpg, 'GPGStrategy', gpg.LoopbackGPGStrategy)
40
40
 
41
41
    def setup_tree(self):
42
 
        wt = BzrDir.create_standalone_workingtree('.')
 
42
        wt = ControlDir.create_standalone_workingtree('.')
43
43
        wt.commit("base A", allow_pointless=True, rev_id='A')
44
44
        wt.commit("base B", allow_pointless=True, rev_id='B')
45
45
        wt.commit("base C", allow_pointless=True, rev_id='C')
89
89
 
90
90
    def test_resign_directory(self):
91
91
        """Test --directory option"""
92
 
        wt = BzrDir.create_standalone_workingtree('a')
 
92
        wt = ControlDir.create_standalone_workingtree('a')
93
93
        wt.commit("base A", allow_pointless=True, rev_id='A')
94
94
        wt.commit("base B", allow_pointless=True, rev_id='B')
95
95
        wt.commit("base C", allow_pointless=True, rev_id='C')