~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: 2016-04-21 04:10:52 UTC
  • mfrom: (6616.1.1 fix-en-user-guide)
  • Revision ID: pqm@pqm.ubuntu.com-20160421041052-clcye7ns1qcl2n7w
(richard-wilbur) Ensure build of English use guide always uses English text
 even when user's locale specifies a different language. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
"""Black-box tests for bzr re-sign.
20
20
"""
21
21
 
22
 
import os
23
 
 
24
22
from bzrlib import (
25
23
    gpg,
26
24
    tests,
27
25
    )
28
 
from bzrlib.bzrdir import BzrDir
 
26
from bzrlib.controldir import ControlDir
29
27
from bzrlib.testament import Testament
30
28
 
31
29
 
41
39
        self.overrideAttr(gpg, 'GPGStrategy', gpg.LoopbackGPGStrategy)
42
40
 
43
41
    def setup_tree(self):
44
 
        wt = BzrDir.create_standalone_workingtree('.')
 
42
        wt = ControlDir.create_standalone_workingtree('.')
45
43
        wt.commit("base A", allow_pointless=True, rev_id='A')
46
44
        wt.commit("base B", allow_pointless=True, rev_id='B')
47
45
        wt.commit("base C", allow_pointless=True, rev_id='C')
91
89
 
92
90
    def test_resign_directory(self):
93
91
        """Test --directory option"""
94
 
        wt = BzrDir.create_standalone_workingtree('a')
 
92
        wt = ControlDir.create_standalone_workingtree('a')
95
93
        wt.commit("base A", allow_pointless=True, rev_id='A')
96
94
        wt.commit("base B", allow_pointless=True, rev_id='B')
97
95
        wt.commit("base C", allow_pointless=True, rev_id='C')