/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/test_inv.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-22 00:56:52 UTC
  • mfrom: (6621.2.26 py3_pokes)
  • Revision ID: jelmer@jelmer.uk-20170522005652-yjahcr9hwmjkno7n
Merge Python3 porting work ('py3 pokes')

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
 
18
 
from breezy import (
 
18
from .. import (
19
19
    chk_map,
20
20
    groupcompress,
21
21
    errors,
26
26
    tests,
27
27
    workingtree,
28
28
    )
29
 
from breezy.inventory import (
 
29
from ..inventory import (
30
30
    CHKInventory,
31
31
    Inventory,
32
32
    ROOT_ID,
36
36
    TreeReference,
37
37
    mutable_inventory_from_tree,
38
38
    )
39
 
from breezy.tests import (
 
39
from . import (
40
40
    TestCase,
41
41
    TestCaseWithTransport,
42
42
    )
43
 
from breezy.tests.scenarios import load_tests_apply_scenarios
 
43
from .scenarios import load_tests_apply_scenarios
44
44
 
45
45
 
46
46
load_tests = load_tests_apply_scenarios
979
979
        chk_inv = CHKInventory.from_inventory(chk_bytes, inv)
980
980
        bytes = ''.join(chk_inv.to_lines())
981
981
        new_inv = CHKInventory.deserialise(chk_bytes, bytes, ("revid",))
982
 
        fileids = list(new_inv.__iter__())
983
 
        fileids.sort()
 
982
        fileids = sorted(new_inv.__iter__())
984
983
        self.assertEqual([inv.root.file_id, "fileid"], fileids)
985
984
 
986
985
    def test__len__(self):