Ben Chuanlong Du's Blog

It is never too late to learn.

Write Unit Tests Using unittest in Python

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

python -m unittest test_module1 test_module2 python -m unittest test_module.TestClass python -m unittest test_module.TestClass.test_method python -m unittest tests/test_something.py

References

Comments