Nose2 has this awesome Such DSL that works similar to RSpec. I used to use unittests directly and decorated the function with something like mock.patch. I am wondering how the should
decorated functions differ from regular unittest functions, and how can I use other decorators as for unittest functions.
I can get it to work like this, but it seems like losing the ability of passing in the unittest instance in the arguments. Any advise will be super appreciated. Thanks!
@it.should('do something')
@mock.patch('my.package.lib.b')
@mock.patch('my.package.lib.a')
def test(a, b):
pass