Unit test python. "python testing with pytest: simple, rapid, effective, and scalable" от brian okken на русском. pytest.mark.parametrize. юнит-тесты на python пример.