/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/per_workingtree/test_basis_inventory.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-21 18:10:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6623.
  • Revision ID: jelmer@jelmer.uk-20170521181028-zn04pdfw0od9hfj3
Rename brzlib => breezy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
# along with this program; if not, write to the Free Software
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
 
from brzlib.tests import TestNotApplicable
18
 
from brzlib.tests.per_workingtree import TestCaseWithWorkingTree
19
 
import brzlib.xml6
 
17
from breezy.tests import TestNotApplicable
 
18
from breezy.tests.per_workingtree import TestCaseWithWorkingTree
 
19
import breezy.xml6
20
20
 
21
21
 
22
22
class TestBasisInventory(TestCaseWithWorkingTree):
25
25
        # This test is not applicable to DirState based trees: the basis is
26
26
        # not separate is mandatory.
27
27
        if isinstance(self.workingtree_format,
28
 
            brzlib.workingtree_4.DirStateWorkingTreeFormat):
 
28
            breezy.workingtree_4.DirStateWorkingTreeFormat):
29
29
            raise TestNotApplicable("not applicable to %r"
30
30
                % (self.workingtree_format,))
31
31
        # TODO: jam 20051218 this probably should add more than just
53
53
        self.assertTrue(t._transport.has('basis-inventory-cache'))
54
54
 
55
55
        basis_inv_txt = t.read_basis_inventory()
56
 
        basis_inv = brzlib.xml7.serializer_v7.read_inventory_from_string(basis_inv_txt)
 
56
        basis_inv = breezy.xml7.serializer_v7.read_inventory_from_string(basis_inv_txt)
57
57
        self.assertEqual('r2', basis_inv.revision_id)
58
58
        store_inv = b.repository.get_inventory('r2')
59
59
 
64
64
        # This test is not applicable to DirState based trees: the basis is
65
65
        # not separate and ignorable.
66
66
        if isinstance(self.workingtree_format,
67
 
            brzlib.workingtree_4.DirStateWorkingTreeFormat):
 
67
            breezy.workingtree_4.DirStateWorkingTreeFormat):
68
68
            raise TestNotApplicable("not applicable to %r"
69
69
                % (self.workingtree_format,))
70
70
        t = self.make_branch_and_tree('.')