A test is a small program that checks that another program does what it should, and says so with a pass or a fail. Once you have written one, you can run it again in a second, after every change, and know at once if you broke something. That is the single most useful habit in professional programming. You have used tests all through this course, in the practice packs, and this lesson shows you how to write them yourself with the unittest module, which comes with Python.
More lessons in Complete Python Programming