how to make all assertions in a unit test execute

Ben Finney ben+python at
Sun Oct 17 00:50:30 CEST 2010

Ben Finney <ben+python at> writes:

> Yes, that's by design. Each function in a TestCase subclass is a test
> case […]

Poorly described. Try this instead: Each test case in a TestCase
subclass must be a separate function, whose name starts with ‘test’.

Or you could see what the documentation says; it may describe it better
than I'm doing :-)

 \        “Kill myself? Killing myself is the last thing I'd ever do.” |
  `\                                            —Homer, _The Simpsons_ |
_o__)                                                                  |
Ben Finney

More information about the Python-list mailing list