标签:color @class python nbsp ddt name UI pre assm
1 # -*- coding: utf-8 -*- 2 3 import unittest 4 5 class MyUT(unittest.TestCase): 6 7 def test_1(self): 8 print("test-1") 9 10 def test_2(selfs): 11 print("test-2") 12 13 @classmethod 14 def run_suite(cls): 15 suite = unittest.TestSuite() 16 suite 17 18 if __name__ == ‘__main__‘: 19 suite = unittest.TestSuite() 20 suite.addTest(MyUT(‘test_1‘)) 21 suite.addTest(MyUT(‘test_2‘)) 22 suite.run()
标签:color @class python nbsp ddt name UI pre assm
原文地址:https://www.cnblogs.com/coder211/p/9056035.html