Unit testing involves writing simple tests that test tiny sections of code to confirm that it gives the correct answers in all cases. You often hear about it in connection with the term TDD; Test Driven Development. The concept is related to programming in general, not specifically to python.