单一功能我有一个项目的一个结构: # A.py
def foo():
result = None
# some long, very long calculations
return result
# B.py
from A import foo
def bar():
result = foo()
# some not so long a
动态测试我有,所以我想使用循环 我会尝试像测试的动态量: from nose.tools import istest, nottest
from nose.tools import eq_
import nose
nose.run()
@istest
def test_1():
for i in range(100):
@istest
def test_