add @classmethod although it's not strictly neccessary for basic cases.

This commit is contained in:
holger krekel 2011-03-16 19:05:28 +01:00
parent 1d40abadc4
commit cf4e14baed
1 changed files with 2 additions and 0 deletions

View File

@ -39,11 +39,13 @@ class level setup/teardown
Similarly, the following methods are called at class level before Similarly, the following methods are called at class level before
and after all test methods of the class are called:: and after all test methods of the class are called::
@classmethod
def setup_class(cls): def setup_class(cls):
""" setup up any state specific to the execution """ setup up any state specific to the execution
of the given class (which usually contains tests). of the given class (which usually contains tests).
""" """
@classmethod
def teardown_class(cls): def teardown_class(cls):
""" teardown any state that was previously setup """ teardown any state that was previously setup
with a call to setup_class. with a call to setup_class.