[openstack-dev] [nova] please use testtools.TestCase

Clark Boylan clark.boylan at gmail.com
Tue Dec 11 02:32:52 UTC 2012


Actually, if you are writing nova unittests you should use
nova.test.TestCase for all tests to ensure that all the proper setup
happens.

Clark

On Mon, Dec 10, 2012 at 6:25 PM, Monty Taylor <mordred at inaugust.com> wrote:
> Hey guys!
>
> We've gotten nova ported to testtools and fixtures (it's not all 100%
> pretty, but we've got it in there strongly)
>
> This means that it's important that if you make any new test classes and
> you don't subclass nova.test.TestCase, that you should subclass
> testtools.TestCase and not unittest.TestCase (elsewise some things, like
> log collection, be unhappy)
>
> Thanks!
> Monty
>
> _______________________________________________
> OpenStack-dev mailing list
> OpenStack-dev at lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



More information about the OpenStack-dev mailing list