/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Tests for checking of trees."""
18
18
 
19
 
from bzrlib.tests.per_workingtree import TestCaseWithWorkingTree
 
19
from breezy.tests.per_workingtree import TestCaseWithWorkingTree
20
20
 
21
 
from bzrlib.workingtree import InventoryWorkingTree
22
 
from bzrlib.tests import TestNotApplicable
 
21
from breezy.workingtree import InventoryWorkingTree
 
22
from breezy.tests import TestNotApplicable
23
23
 
24
24
 
25
25
class TestCheck(TestCaseWithWorkingTree):
29
29
        if not isinstance(tree, InventoryWorkingTree):
30
30
            raise TestNotApplicable(
31
31
                "_get_check_refs only relevant for inventory working trees")
32
 
        self.assertEqual(set([('trees', 'null:')]),
 
32
        self.assertEqual({('trees', 'null:')},
33
33
            set(tree._get_check_refs()))
34
34
 
35
35
    def test__get_check_refs_basis(self):
40
40
            raise TestNotApplicable(
41
41
                "_get_check_refs only relevant for inventory working trees")
42
42
        revid = tree.commit('first post')
43
 
        self.assertEqual(set([('trees', revid)]),
 
43
        self.assertEqual({('trees', revid)},
44
44
            set(tree._get_check_refs()))
45
45
 
46
46
    def test__check_with_refs(self):