Python には単体テストを書くためのフレームワークがいくつかあります。 (prime) $ pytest test_prime.py ===== test session starts ===== platform darwin -- Python 3.7.3, pytest-4.5.0, py-1.8.0, pluggy-0.11.0 rootdir: ...