Пример #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
Пример #2
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
Пример #3
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
Пример #4
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
Пример #5
0
 def test_overridden_by_assumptions_single(self, **kwargs):
     func = decorators.overridden_by_assumptions('a1')(self.func)
     assert func.overridden_by_assumptions == ('a1', )
     assert func.__name__ == self.func_name
     assert getfullargspec(func) == self.func_argspec