45d4099
Use pytest-cov for coverage testing, set minimal coverage percentage to 80%. And also fix the warnings found by pytest in both python2 and python3.