'If self.run_under_coverage is True, it returns the arg \'cmd\'
altered to be run under coverage. It returns the command
unaltered otherwise.'

def _under_coverage_cmd(self, cmd):

    if self.run_under_coverage:
        if (not cmd[0].endswith('.py')):
            cmd[0] = '`which    {}`'.format(cmd[0])
        cmd = (['python', '-m', 'coverage', 'run', self.cov_args, '--rcfile={}'.format(Env.PYTHON_COVERAGERC)] + cmd)
    return cmd
