/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 bzrlib/tests/test_selftest.py

(jelmer) Skip tests that require an inventory when run against a WorkingTree
 that is not inventory based. (Jelmer Vernooij)

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