示例#1
0
def setup():
    print("MOD setup called", state, id(state))
    state.append('test_pak.test_mod.setup')
示例#2
0
文件: test_mod.py 项目: atsb/nose-py3
def teardown():
    print
    "MOD teardown called", state, id(state)
    state.append('test_pak.test_mod.teardown')
示例#3
0
def test_minus():
    state.append('test_pak.test_mod.test_minus')
示例#4
0
文件: __init__.py 项目: BAG-CK/nose
def setup():
    # print "SUB setup called", state, id(state)
    state.append('test_pak.test_sub.setup')
示例#5
0
文件: test_mod.py 项目: atsb/nose-py3
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
示例#6
0
文件: test_mod.py 项目: atsb/nose-py3
def setup():
    state.append('test_pak.test_sub.test_mod.setup')
示例#7
0
文件: test_mod.py 项目: atsb/nose-py3
def test():
    state.append('test_pak.test_sub.test_mod.test')
    assert maths.add(1, 2) == 3
示例#8
0
def teardown():
    state.append('test_pak.test_sub.test_mod.teardown')    
示例#9
0
def test():
    state.append('test_pak.test_sub.test_mod.test')
    assert maths.add(1, 2) == 3
示例#10
0
def setup():
    state.append('test_pak.test_sub.test_mod.setup')
示例#11
0
 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)
示例#12
0
 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)
示例#13
0
 def teardown(self):
     state.append('test_pak.test_sub.test_mod.TestMaths.teardown')
示例#14
0
 def setup(self):
     state.append('test_pak.test_sub.test_mod.TestMaths.setup')
示例#15
0
 def teardown_class(cls):
     state.append('test_pak.test_sub.test_mod.TestMaths.teardown_class')
示例#16
0
文件: __init__.py 项目: atsb/nose-py3
def test_sub_init():
    state.append('test_pak.test_sub.test_sub_init')
示例#17
0
文件: test_mod.py 项目: atsb/nose-py3
 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)
示例#18
0
文件: __init__.py 项目: atsb/nose-py3
def setup():
    # print "SUB setup called", state, id(state)
    state.append('test_pak.test_sub.setup')
示例#19
0
文件: test_mod.py 项目: atsb/nose-py3
def teardown():
    state.append('test_pak.test_sub.test_mod.teardown')
示例#20
0
文件: __init__.py 项目: atsb/nose-py3
def teardown():
    # print "SUB teardown called", state, id(state)
    state.append('test_pak.test_sub.teardown')
示例#21
0
文件: __init__.py 项目: BAG-CK/nose
def test_sub_init():
    state.append('test_pak.test_sub.test_sub_init')
示例#22
0
文件: test_mod.py 项目: atsb/nose-py3
 def setup_class(cls):
     state.append('test_pak.test_sub.test_mod.TestMaths.setup_class')
示例#23
0
文件: __init__.py 项目: BAG-CK/nose
def teardown():
    # print "SUB teardown called", state, id(state)
    state.append('test_pak.test_sub.teardown')
示例#24
0
文件: test_mod.py 项目: atsb/nose-py3
 def teardown_class(cls):
     state.append('test_pak.test_sub.test_mod.TestMaths.teardown_class')
示例#25
0
文件: test_mod.py 项目: atsb/nose-py3
def test_minus():
    state.append('test_pak.test_mod.test_minus')
示例#26
0
文件: test_mod.py 项目: atsb/nose-py3
 def setup(self):
     state.append('test_pak.test_sub.test_mod.TestMaths.setup')
示例#27
0
文件: test_mod.py 项目: atsb/nose-py3
def setup():
    print
    "MOD setup called", state, id(state)
    state.append('test_pak.test_mod.setup')
示例#28
0
文件: test_mod.py 项目: atsb/nose-py3
 def teardown(self):
     state.append('test_pak.test_sub.test_mod.TestMaths.teardown')
示例#29
0
def teardown():
    print("MOD teardown called", state, id(state))
    state.append('test_pak.test_mod.teardown')
示例#30
0
文件: test_mod.py 项目: atsb/nose-py3
 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)
示例#31
0
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
示例#32
0
 def setup_class(cls):
     state.append('test_pak.test_sub.test_mod.TestMaths.setup_class')