from nose.tools import * def setup(): foo = 10 def teardown(): foo = None @with_setup(setup, teardown) def test_foo_value(): assert_equal(foo, 10).
確定! 回上一頁