Пример #1
0
 def setUp(self):
     # formats that don't support views can skip the rest of these
     # tests...
     fmt = self.workingtree_format
     f = getattr(fmt, 'supports_views')
     if f is None:
         raise TestSkipped("format %s doesn't declare whether it "
             "supports views, assuming not" % fmt)
     if not f():
         raise TestSkipped("format %s doesn't support views" % fmt)
     TestCaseWithWorkingTree.setUp(self)
Пример #2
0
 def setUp(self):
     fmt = self.workingtree_format
     supported = getattr(fmt, 'supports_views')
     if supported is None:
         warn("Format %s doesn't declare whether it supports views or not"
              % fmt)
         raise TestSkipped('No view support at all')
     if supported():
         raise TestSkipped("Format %s declares that views are supported"
                           % fmt)
         # it's covered by TestTreeViews
     TestCaseWithWorkingTree.setUp(self)
 def make_branch_and_tree(self, path):
     tree = TestCaseWithWorkingTree.make_branch_and_tree(self, path)
     if not tree.supports_tree_reference():
         raise TestNotApplicable('Tree references not supported')
     return tree
Пример #4
0
 def make_branch_and_tree(self, path):
     tree = TestCaseWithWorkingTree.make_branch_and_tree(self, path)
     if not tree.supports_tree_reference():
         raise TestNotApplicable('Tree references not supported')
     return tree