[TIP] Unittest Changes

Ben Finney ben+python at benfinney.id.au
Mon Jul 21 13:42:22 PDT 2008

"Pekka Laukkanen" <peke at iki.fi> writes:

> 2) Having PEP-8-style aliases for asserts. PEP-8 reminds that
> consistency within a module is most important, but now my test modules
> have inconsistent lines like
> """self.assertEquals(do_something_interesting, expected_value)""".

Yes, please. At least let us write PEP 8 conformant code in our unit
tests, even if others are slow to migrate from the legacy names.

 \      “Conscience is a mother-in-law whose visit never ends.” —Henry |
  `\                                                        L. Mencken |
_o__)                                                                  |
Ben Finney

More information about the testing-in-python mailing list