[Python-Dev] setUpClass and setUpModule in unittest (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Sat Feb 13 11:42:41 CET 2010
- Previous message: [Python-Dev] setUpClass and setUpModule in unittest
- Next message: [Python-Dev] setUpClass and setUpModule in unittest
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Robert Collins <robertc 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.
- Previous message: [Python-Dev] setUpClass and setUpModule in unittest
- Next message: [Python-Dev] setUpClass and setUpModule in unittest
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]