摘要:
if isinstance(test, type) and issubclass(test,(case.TestCase, TestSuite)): raise TypeError("TestCases and TestSuites must be instantiated " "before pa 阅读全文
摘要:
ddt原理讲解 import unittest import ddt @ddt.ddt # 5.装饰整个类 class TestCase(unittest.TestCase): @ddt.data((1, 2), (3, 4)) #1.执行data方法,返回值装饰test05 def test05( 阅读全文