From cf4e14baed7df523a287fc0547b5c95e4c7618f0 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Wed, 16 Mar 2011 19:05:28 +0100 Subject: [PATCH] add @classmethod although it's not strictly neccessary for basic cases. --- doc/xunit_setup.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/xunit_setup.txt b/doc/xunit_setup.txt index 486d1cc45..174867df4 100644 --- a/doc/xunit_setup.txt +++ b/doc/xunit_setup.txt @@ -39,11 +39,13 @@ class level setup/teardown Similarly, the following methods are called at class level before and after all test methods of the class are called:: + @classmethod def setup_class(cls): """ setup up any state specific to the execution of the given class (which usually contains tests). """ + @classmethod def teardown_class(cls): """ teardown any state that was previously setup with a call to setup_class.