Beispiel #1
0
 def test_overridden_by_assumptions_triple(self, **kwargs):
     func = decorators.overridden_by_assumptions(
         'a1', 'a2', 'a3')(self.func)
     assert func.overridden_by_assumptions == ('a1', 'a2', 'a3',)
     assert func.__name__ == self.func_name
     assert inspect.getargspec(func) == self.func_argspec
Beispiel #2
0
 def test_overridden_by_assumptions_empty(self, **kwargs):
     func = decorators.overridden_by_assumptions()(self.func)
     assert func.overridden_by_assumptions == ()
     assert func.__name__ == self.func_name
     assert inspect.getargspec(func) == self.func_argspec