Exemplo n.º 1
0
def test_groups_two_tests_same_diff():
    diff1 = """\
- bar
+ foo
"""
    diffs = {"a": diff1, "b": diff1}
    verify(str(analyze_groups(diffs, identical)))
Exemplo n.º 2
0
def test_overlapping_diffs():
    diff1 = """\
- bar
+ foo
"""
    diff2 = """\
+ foo
"""

    diffs = {"a": diff1, "b": diff2}
    verify(str(analyze_groups(diffs, identical)))
Exemplo n.º 3
0
def test_groups_larger_number_of_tests():
    diff1 = """\
- bar
+ foo
"""
    diff2 = """\
- baz
"""

    diffs = {"a": diff1, "b": diff2, "c": diff2, "d": diff2, "e": diff1}
    verify(str(analyze_groups(diffs, identical)))