[Python-Dev] setUpClass and setUpModule in unittest
Antoine Pitrou
solipsis at pitrou.net
Sat Feb 13 11:42:41 CET 2010
Robert Collins <robertc <at> robertcollins.net> writes:
>
> I'm not personally very keen on inspecting everything in self.__dict__,
> I suspect it would tickle bugs in other unittest extensions. However I'm
> not really /against/ it - I don't think it will result in bad test
> behaviour or isolation issues. So if users would like it, lets do it.
Why not take all resource_XXX attributes?
By the way, how does a given test access the allocated resource? Say, the DB
connection. Does it become an attribute of the test case instance?
Thank you
Antoine.
More information about the Python-Dev
mailing list