示例#1
0
 def __init__(self, old_tree, new_tree, expected):
     Matcher.__init__(self)
     expected = [TreeChange(*x) if isinstance(x, tuple) else x for x in expected]
     self.use_inventory_tree_changes = old_tree.supports_file_ids and new_tree.supports_file_ids
     self.expected = expected
     self.old_tree = old_tree
     self.new_tree = new_tree
示例#2
0
    def __init__(self, exception_type):
        """
        Create a MatchesException that will match exc_info's for exception.

        :param exception: An exception type.
        """
        Matcher.__init__(self)
        self.expected = exception_type
示例#3
0
 def __init__(self, exception):
     """Create a MatchesException that will match exc_info's for exception.
     
     :param exception: An exception to check against an exc_info tuple. The
         traceback object is not inspected, only the type and arguments of
         the exception.
     """
     Matcher.__init__(self)
     self.expected = exception
示例#4
0
 def __init__(self, lockable_thing):
     Matcher.__init__(self)
     self.lockable_thing = lockable_thing
示例#5
0
 def __init__(self, history):
     Matcher.__init__(self)
     self.expected = history
示例#6
0
 def __init__(self, previous_tree, previous_entries):
     Matcher.__init__(self)
     self.previous_tree = previous_tree
     self.previous_entries = previous_entries
示例#7
0
 def __init__(self, entries):
     Matcher.__init__(self)
     self.entries = entries
示例#8
0
 def __init__(self, repository, revision_id):
     Matcher.__init__(self)
     self.repository = repository
     self.revision_id = revision_id
示例#9
0
 def __init__(self, repository, revision_id):
     Matcher.__init__(self)
     self.repository = repository
     self.revision_id = revision_id
示例#10
0
 def __init__(self, lockable_thing):
     Matcher.__init__(self)
     self.lockable_thing = lockable_thing
示例#11
0
 def __init__(self, history):
     Matcher.__init__(self)
     self.expected = history
示例#12
0
 def __init__(self, entries):
     Matcher.__init__(self)
     self.entries = entries