Name Description Size
__init__.py 662
decorators.py Decorator which generates methods given a base method and some data. **func_suffix** is used as a suffix for the new created method and must be unique given a base method. if **func_suffix** countains characters that are not allowed in normal python function name, these characters will be replaced with "_". This decorator can be used more than once on a single base method. The class must have a metaclass of :class:`MetaParameterized`. Example:: # This example will generate two methods: # # - MyTestCase.test_it_1 # - MyTestCase.test_it_2 # class MyTestCase(MarionetteTestCase): @parameterized("1", 5, named='name') @parameterized("2", 6, named='name2') def test_it(self, value, named=None): print value, named :param func_suffix: will be used as a suffix for the new method :param \*args: arguments to pass to the new method :param \*\*kwargs: named arguments to pass to the new method 8189
testcases.py Internal: Decorator used in class MetaParameterized. 13071