Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
7 lines (6 sloc) 267 Bytes
def should_raise(exception):
def should_raise_decorator(decorated_function):
def decorated(self, *args, **kwargs):
self.assertRaises(exception, decorated_function, self, *args, **kwargs)
return decorated
return should_raise_decorator