import unittest import sys class TestPeerManage(unittest.TestCase): @classmethod def setUpClass(cls): print("PeerManage Test Module Setup") @classmethod def tearDownClass(cls): print("PeerManage Test Module Teardown") def test_peer_manage_01(self): print("Running test_peer_manage_01") # Add your test logic here if __name__ == "__main__": if len(sys.argv) > 1: suite = unittest.TestSuite() for test_name in sys.argv[1:]: suite.addTest(TestCPU(test_name)) unittest.TextTestRunner().run(suite) else: unittest.main()