我在 django testcases 中有两个测试类。我想在 python 中将一个测试类函数用于另一个测试类。用于restframework的django测试用例:
class TestExample(APITestCase):
def test_ex(self):
print "test_ex"
class TestSample(APITestCase):
def test_sample(self):
print "test_sample"
如何test_ex function在test_sample函数中使用
当年话下
幕布斯7119047
Helenr
随时随地看视频慕课网APP
相关分类