def setup(): print("MOD setup called", state, id(state)) state.append('test_pak.test_mod.setup')
def teardown(): print "MOD teardown called", state, id(state) state.append('test_pak.test_mod.teardown')
def test_minus(): state.append('test_pak.test_mod.test_minus')
def setup(): # print "SUB setup called", state, id(state) state.append('test_pak.test_sub.setup')
def test_add(): print "MOD.test_add called", state, id(state) state.append('test_pak.test_mod.test_add') assert maths.add(1, 2) == 3
def setup(): state.append('test_pak.test_sub.test_mod.setup')
def test(): state.append('test_pak.test_sub.test_mod.test') assert maths.add(1, 2) == 3
def teardown(): state.append('test_pak.test_sub.test_mod.teardown')
def test_two_two(self): state.append('test_pak.test_sub.test_mod.TestMaths.test_two_two') assert maths.mult(2, 2) == maths.add(2, 2)
def test_div(self): state.append('test_pak.test_sub.test_mod.TestMaths.test_div') assert maths.div(2, 1) == 2, "%s != %s" % (maths.div(2, 1), 2)
def teardown(self): state.append('test_pak.test_sub.test_mod.TestMaths.teardown')
def setup(self): state.append('test_pak.test_sub.test_mod.TestMaths.setup')
def teardown_class(cls): state.append('test_pak.test_sub.test_mod.TestMaths.teardown_class')
def test_sub_init(): state.append('test_pak.test_sub.test_sub_init')
def teardown(): # print "SUB teardown called", state, id(state) state.append('test_pak.test_sub.teardown')
def setup_class(cls): state.append('test_pak.test_sub.test_mod.TestMaths.setup_class')
def setup(): print "MOD setup called", state, id(state) state.append('test_pak.test_mod.setup')
def teardown(): print("MOD teardown called", state, id(state)) state.append('test_pak.test_mod.teardown')
def test_add(): print("MOD.test_add called", state, id(state)) state.append('test_pak.test_mod.test_add') assert maths.add(1, 2) == 3