unittest examples Running unittests python apiwrapper_test.py Generating coverage reports Run the coverage For basic coverage: coverage run apiwrapper_test.py To see branch coverage as well as statement coverage: coverage run --branch apiwrapper_test.py Generate html files: coverage html