- A testcase is created by subclassing unittest.TestCase.
- Individual tests are defined with methods whose names start with the letters "test". This naming convention informs the test runner about which methods represent tests.
- Following is a typical example of unit test:
# PythonUnitTest.py
import unittest
class Sort(unittest.TestCase):
def setUp(self):