だから私はスクリプトtest.pyを持っています
from nose.tools import with_setup
class Test:
@with_setup(setup_func, teardown_func)
def test(self):
print "Hello World"
"test.py" と同じディレクトリにあるinit .py でsetup_func() と teardown_func() を定義できますか?
基本的に、目的は一連のテスト ケースに共通のセットアップと分解を行うことです。