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
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
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
def __init__(self, lockable_thing): Matcher.__init__(self) self.lockable_thing = lockable_thing
def __init__(self, history): Matcher.__init__(self) self.expected = history
def __init__(self, previous_tree, previous_entries): Matcher.__init__(self) self.previous_tree = previous_tree self.previous_entries = previous_entries
def __init__(self, entries): Matcher.__init__(self) self.entries = entries
def __init__(self, repository, revision_id): Matcher.__init__(self) self.repository = repository self.revision_id = revision_id