/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_tree/test_tree.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:
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 bzrlib import (
 
17
from breezy import (
18
18
    errors,
19
19
    conflicts,
20
20
    osutils,
22
22
    tests,
23
23
    workingtree_4,
24
24
    )
25
 
from bzrlib.tests import TestSkipped
26
 
from bzrlib.tests.per_tree import TestCaseWithTree
27
 
from bzrlib.symbol_versioning import (
 
25
from breezy.tests import TestSkipped
 
26
from breezy.tests.per_tree import TestCaseWithTree
 
27
from breezy.symbol_versioning import (
28
28
    deprecated_in,
29
29
    )
30
30
 
137
137
        tree.lock_read()
138
138
        self.addCleanup(tree.unlock)
139
139
        self.assertEqual(tree.all_file_ids(),
140
 
                         set(['b-id', 'root-id', 'c-id', 'a-id']))
 
140
                         {'b-id', 'root-id', 'c-id', 'a-id'})
141
141
 
142
142
 
143
143
class TestStoredKind(TestCaseWithTree):
258
258
        tree = self._convert_tree(work_tree)
259
259
        output = [e.name for e in
260
260
            tree.iter_child_entries(tree.get_root_id())]
261
 
        self.assertEqual(set(['a', 'f']), set(output))
 
261
        self.assertEqual({'a', 'f'}, set(output))
262
262
        output = [e.name for e in
263
263
            tree.iter_child_entries(tree.path2id('a'))]
264
 
        self.assertEqual(set(['b', 'd']), set(output))
 
264
        self.assertEqual({'b', 'd'}, set(output))
265
265
 
266
266
    def test_does_not_exist(self):
267
267
        work_tree = self.make_branch_and_tree('.')