[TIP] issues with class level fixtures
jason pellerin
jpellerin at gmail.com
Tue Oct 23 07:37:23 PDT 2007
On 10/23/07, loigu <loigu at volny.cz> wrote:
> First problem is, that class level fixtures didn't work as I expected:
Class-level fixtures must be classmethods, for instance:
class TestClassFixtures:
@classmethod
def setup_class(cls):
print "setup for class " + cls.__name__
return
@classmethod
def teardown_class(cls):
print "teardown for class " + cls.__name__
return
JP
More information about the testing-in-python
mailing list