import nose

if __name__ == '__main__':
    nose.main(argv=['--cover-inclusive', '--cover-erase', '--cover-package=dvc', '--with-coverage'])

import os
from subprocess import check_call

REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
os.chdir(REPO_ROOT)

check_call('nosetests --cover-inclusive --cover-erase --cover-package=dvc --with-coverage', shell=True)

call nosetests directly