Unittest testing assert*() calls rather than methods?

Ben Finney ben+python at benfinney.id.au
Wed Sep 28 10:53:40 EDT 2011


Ben Finney <ben+python at benfinney.id.au> writes:

> You can use the third-party ‘testscenarios’ library

The URL got a bit mangled. The proper PyPI URL for that library is
<URL:http://pypi.python.org/pypi/testscenarios>.

> to generate test cases at run time, one for each combination of
> scenarios with test cases on the class. They will all be run and
> reported as distinct test cases.
>
> There is even another library integrating this with Django
> <URL:http://pypi.python.org/pypi/django-testscenarios>.

-- 
 \        “Don't worry about people stealing your ideas. If your ideas |
  `\     are any good, you'll have to ram them down people's throats.” |
_o__)                                                    —Howard Aiken |
Ben Finney



More information about the Python-list mailing list