/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/per_workingtree/test_add_reference.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-01-12 00:43:17 UTC
  • mfrom: (5582.4.3 presplitoutbzrbranch)
  • Revision ID: pqm@pqm.ubuntu.com-20110112004317-81kxafod33p5lqal
(jelmer) Remove some hardcoded dependencies on weave-era formats in bzrlib
 and clean up more imports. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
import os
18
18
 
19
 
from bzrlib import errors, tests, workingtree, workingtree_4
 
19
from bzrlib import errors, tests, workingtree
20
20
from bzrlib.tests.per_workingtree import TestCaseWithWorkingTree
21
21
 
22
 
TREES_NOT_SUPPORTING_REFERENCES = (workingtree.WorkingTree2,
23
 
                                   workingtree.WorkingTree3,
24
 
                                   workingtree_4.WorkingTree4)
25
 
 
26
22
 
27
23
class TestBasisInventory(TestCaseWithWorkingTree):
28
24
 
37
33
        return tree, sub_tree
38
34
 
39
35
    def _references_unsupported(self, tree):
40
 
        if tree.__class__ in TREES_NOT_SUPPORTING_REFERENCES:
 
36
        if not tree.supports_tree_reference():
41
37
            raise tests.TestSkipped('Tree format does not support references')
42
38
        else:
43
39
            self.fail('%r does not support references but should'