Iterating over test data in unit tests

Bengt Richter bokr at oz.net
Tue Dec 6 00:38:50 EST 2005


On Tue, 6 Dec 2005 12:19:40 +1100 (EST), Ben Finney <bignose+hates-spam at benfinney.id.au> wrote:

>Howdy all,
>
>Summary: I'm looking for idioms in unit tests for factoring out
>repetitive iteration over test data. I explain my current practice,
>and why it's unsatisfactory.
>
Does this do what you want?
    http://codespeak.net/py/current/doc/test.html#generative-tests-yielding-more-tests

Regards,
Bengt Richter



More information about the Python-list mailing list