Here are two basic rules you should remember while writing test cases. 1. Testcase function should start with the keyword test_. 2. Python file name should start with test_ or end with _test.