未定义Unittest-TestSequenceFunctions

时间:2018-03-20 03:34:31

标签: python python-unittest

这是我的代码:

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

0 个答案:

没有答案