

def test_stats(self):
    c = libpry.coverage.File(None)
    c.executable = set([1, 2, 3, 4])
    c.executed = set([1, 2])
    c.exclusions = set([])
    assert (c.numExecutable == 4)
    assert (c.numExecuted == 2)
    assert (c.notExecuted == set([3, 4]))
    assert (c.percentage == 50.0)
    assert (c.notExecutedRanges == [(3, 4)])
    c.executable = set()
    assert (c.percentage == 100.0)

dataset/ETHPy150Open cortesi/pry/test/test_coverage.py uFile.test_stats/original