~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/tree_implementations/test_test_trees.py

  • Committer: Robert Collins
  • Date: 2006-07-21 01:37:47 UTC
  • mto: (1852.9.1 Tree.compare().)
  • mto: This revision was merged to the branch mainline in revision 1890.
  • Revision ID: robertc@robertcollins.net-20060721013747-9752a96bc423aa76
Make iter(Tree) consistent for all tree types.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Tests for the test trees used by the tree_implementations tests."""
18
18
 
 
19
from bzrlib import inventory 
19
20
from bzrlib.tests.tree_implementations import TestCaseWithTree
20
21
 
21
22
 
26
27
        self.assertEqual([], tree.get_parent_ids())
27
28
        self.assertEqual([], tree.conflicts())
28
29
        self.assertEqual([], list(tree.unknowns()))
29
 
        self.assertEqual([], list(iter(tree)))
 
30
        self.assertEqual([inventory.ROOT_ID], list(iter(tree)))