Is it possible to make a unittest decorator to rename a method from "x" to "testx?"
Peter Otten
__peter__ at web.de
Thu Aug 8 04:50:47 EDT 2013
Peter Otten wrote:
> $ python3 mytestcase_demo.py -v
> test_one (__main__.test_two) ... ok
> test_two (__main__.test_two) ... ok
>
> ----------------------------------------------------------------------
> Ran 2 tests in 0.000s
Oops, that's an odd class name. Fixing the name clash in Types.__new__() is
left as an exercise...
More information about the Python-list
mailing list