About unittest test code to understand

For this module, in that the main use,

1, do not repeatedly writing test cases, write a complete, you can re-import the rest.

2, even before writing code to write test cases, and then repeated to verify the case is correct.

3, when the code structure optimization more useful, whether the original has led to the correct code is working properly it can be reconstructed later.

 

Guess you like

Origin www.cnblogs.com/legendwar/p/12642102.html