def test_text_report_delta__no_source():
    from pycobertura.reporters import TextReporterDelta
    cobertura1 = make_cobertura('tests/dummy.source1/coverage.xml')
    cobertura2 = make_cobertura('tests/dummy.source2/coverage.xml')
    report_delta = TextReporterDelta(cobertura1, cobertura2, show_source=False)
    output = report_delta.generate()
    assert (output == 'Filename         Stmts      Miss  Cover\n---------------  -------  ------  -------\ndummy/dummy.py   -            -2  +40.00%\ndummy/dummy2.py  +2           +1  -25.00%\ndummy/dummy3.py  +2           +2  -\nTOTAL            +4           +1  +31.06%')
def test_text_report_delta__no_source():
    from pycobertura.reporters import TextReporterDelta
    cobertura1 = make_cobertura('tests/dummy.source1/coverage.xml')
    cobertura2 = make_cobertura('tests/dummy.source2/coverage.xml')
    report_delta = TextReporterDelta(cobertura1, cobertura2, show_source=False)
    output = report_delta.generate()
    assert (output == 'Filename         Stmts      Miss  Cover\n---------------  -------  ------  -------\ndummy/dummy.py   -            -2  +40.00%\ndummy/dummy2.py  +2           +1  -25.00%\ndummy/dummy3.py  +2           +2  -\nTOTAL            +4           +1  +31.06%')