def called_with(self, *args, **kwargs):
        """Return True if the spy was called with the specified args/kwargs.

        Otherwise raise VerificationError.

        """
        expected_call = Call(*args, **kwargs)
        if expected_call in calls(self.spy):
            return True
        raise VerificationError(
            "expected %s to be called with %s, but it wasn't" % (
                self.spy, expected_call.formatted_args))
def called_with ( self , * args , ** kwargs ) : expected_call = Call ( * args , ** kwargs ) if expected_call in calls ( self . spy ) : return True raise VerificationError ( "expected %s to be called with %s, but it wasn't" % ( self . spy , expected_call . formatted_args ) )
Return True if the spy was called with the specified args/kwargs.

        Otherwise raise VerificationError.