Ejemplo n.º 1
0
def test_trace_33_dec():
    result = trace(cond_return_dec)
    assert len(result.covered_lines) == 2
    assert len(result.all_lines) == 3
    assert result.func_result == 456
Ejemplo n.º 2
0
def test_trace_100_exclude_everythong_else():
    result = trace(call_another)
    assert len(result.covered_lines) == 2
    assert len(result.all_lines) == 2
    assert result.func_result == 456
Ejemplo n.º 3
0
def test_trace_100():
    result = trace(just_return)
    assert len(result.covered_lines) == 1
    assert len(result.all_lines) == 1
    assert result.func_result == 123