See https://mail.python.org/pipermail/pytest-dev/2014-April/002494.html and https://bitbucket.org/memedough/pytest-cov/issue/12/doesnt-capture-coverage-on-imports-made