[openstack-dev] [quantum] unittest updates
Robert Collins
robertc at robertcollins.net
Thu Feb 21 05:22:45 UTC 2013
On 21 February 2013 18:16, Monty Taylor <mordred at inaugust.com> wrote:
> Hey all!
> - If you add new tests and as part of doing that you add a setUp or a
> tearDown method - PLEASE add an upcall. This is going to be enforced by
> testtools soon anyway, so it's good to get in the habit
Also, don't write tearDown's at all. I believe the current code uses
unittest[2] as base classes, and that supports addCleanup, which is
better that tearDown :)
-Rob
--
Robert Collins <rbtcollins at hp.com>
Distinguished Technologist
HP Cloud Services
More information about the OpenStack-dev
mailing list