Supersimple examples how to write unit tests in Python
- pipenv (package manager recommended by Python Packaging Authority) installed
$ pip3 install --user pipenv- virtual environment activated
$ pipenv shell- packages installed
$ pipenv install -d$ python3 -m unittestRun tests with coverage
$ coverage run -m unittestDisplay coverage
$ coverage reportor export to HTML (contains lines annotated by colors)
$ coverage html