这是我的代码:
if __name__ == '__main__':
suite = unittest.TestLoader().loadTestsFromTestCase(unittest.TestSequenceFunctions)
unittest.TextTestRunner(verbosity=2).run(suite)
我收到以下消息:
Traceback (most recent call last):
File "test_CGSSv00.py", line 109, in <module>
suite = unittest.TestLoader().loadTestsFromTestCase(TestSequenceFunctions)
NameError: name 'TestSequenceFunctions' is not defined
为什么没有定义TestSequenceFunctions
?