def _raises_invalid_signature(**kwargs):
 return Raises(MatchesException(InvalidSignature, Equals(InvalidSignature(**kwargs))))

def _raises_invalid_signature ( ** kwargs ) : return Raises ( MatchesException ( InvalidSignature , Equals ( InvalidSignature ( ** kwargs ) ) ) )
helper function to create a matcher that matches callables that .