What to Name Your Tests?
1.
Test methods
begin with
test_
and use
snake_case
.
def
test_
sqrt(self)
def
test_
sqrt_of_negative(self)
2.
Test class
name
either
starts
with Test (Python style) or
ends
with "Test" (JUnit style) and uses CamelCase.
class
Test
Math(unittest.TestCase)
class Math
Test
(unittest.TestCase)