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