@songying
2018-07-18T19:15:11.000000Z
字数 456
阅读 1134
unittest
class unittest.TestCase(methodName='runTest')
Method called to prepare the test fixture. 该方法会在call test 方法前调用。 在该方法中所有raise 的exception 都被认为是error而非 test failure。 默认情况下不做任何事情。
Method called immediately after the test method has been called and the result recorded.
run(result=None)
skipTest(reason)
subTest(msg=None, **params)