~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_selftest.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-04 21:10:36 UTC
  • mfrom: (5825 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5829.
  • Revision ID: jelmer@samba.org-20110504211036-d4urb6cv1iud4l0e
merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2812
2812
        self.assertEqual(remaining_names, _test_ids(split_suite[1]))
2813
2813
 
2814
2814
 
2815
 
class TestCheckInventoryShape(tests.TestCaseWithTransport):
 
2815
class TestCheckTreeShape(tests.TestCaseWithTransport):
2816
2816
 
2817
 
    def test_check_inventory_shape(self):
 
2817
    def test_check_tree_shape(self):
2818
2818
        files = ['a', 'b/', 'b/c']
2819
2819
        tree = self.make_branch_and_tree('.')
2820
2820
        self.build_tree(files)
2821
2821
        tree.add(files)
2822
2822
        tree.lock_read()
2823
2823
        try:
2824
 
            self.check_inventory_shape(tree.inventory, files)
 
2824
            self.check_tree_shape(tree, files)
2825
2825
        finally:
2826
2826
            tree.unlock()
2827
2827