Use unittest's subtest helper
Briefly

Often, the API of unittest is criticized for being "un-Pythonic", especially for its use of method names like setUp() or assertEqual() which don't follow the usual style guide for Python naming.
The Python standard library ships with the unittest module for writing tests.
Read at B-list
[
add
]
[
|
|
]