Unit Testing
Python has its own unit testing framework, consisting of assertions which can be used to test the validity of Python code. The basic unit of testing, a test case, is a section of code which is executed and returns a value. The return value of the test case is evaluated against an expected value; if the return value equals the expected value, the test case passes. However, if the return value differs from the expected value, the test case fails.