Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 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
Ejemplo n.º 4
0
 def __init__(self, lockable_thing):
     Matcher.__init__(self)
     self.lockable_thing = lockable_thing
Ejemplo n.º 5
0
 def __init__(self, history):
     Matcher.__init__(self)
     self.expected = history
Ejemplo n.º 6
0
 def __init__(self, previous_tree, previous_entries):
     Matcher.__init__(self)
     self.previous_tree = previous_tree
     self.previous_entries = previous_entries
Ejemplo n.º 7
0
 def __init__(self, entries):
     Matcher.__init__(self)
     self.entries = entries
Ejemplo n.º 8
0
 def __init__(self, repository, revision_id):
     Matcher.__init__(self)
     self.repository = repository
     self.revision_id = revision_id
Ejemplo n.º 9
0
 def __init__(self, repository, revision_id):
     Matcher.__init__(self)
     self.repository = repository
     self.revision_id = revision_id
Ejemplo n.º 10
0
 def __init__(self, lockable_thing):
     Matcher.__init__(self)
     self.lockable_thing = lockable_thing
Ejemplo n.º 11
0
 def __init__(self, history):
     Matcher.__init__(self)
     self.expected = history
Ejemplo n.º 12
0
 def __init__(self, entries):
     Matcher.__init__(self)
     self.entries = entries