示例#1
0
文件: tests.py 项目: jjhelmus/atmos
 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
文件: tests.py 项目: jjhelmus/atmos
 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
文件: tests.py 项目: jjhelmus/atmos
 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
文件: tests.py 项目: jjhelmus/atmos
 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