Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@wrapt.transient_function_wrapper(__name__,
'TestMonkeyPatching._test_transient_function_wrapper')
def __call__(self, wrapped, instance, args, kwargs):
called.append((args, kwargs))
_self.assertEqual(wrapped, _self._test_transient_function_wrapper)
_self.assertEqual(instance, _self)
_self.assertEqual(args, _args)
_self.assertEqual(kwargs, _kwargs)
return wrapped(*args, **kwargs)
@wrapt.transient_function_wrapper(__name__,
'TestMonkeyPatching._test_transient_function_wrapper')
def wrapper(wrapped, instance, args, kwargs):
called.append((args, kwargs))
self.assertEqual(wrapped, self._test_transient_function_wrapper)
self.assertEqual(instance, self)
self.assertEqual(args, _args)
self.assertEqual(kwargs, _kwargs)
return wrapped(*args, **kwargs)