def test_text_report_delta__colorize_False():
    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, color=False)
    assert (report_delta.generate() == 'Filename         Stmts      Miss  Cover    Missing\n---------------  -------  ------  -------  ----------\ndummy/dummy.py   -            -2  +40.00%  -5, -6\ndummy/dummy2.py  +2           +1  -25.00%  -2, -4, +5\ndummy/dummy3.py  +2           +2  -        +1, +2\nTOTAL            +4           +1  +31.06%')
def test_text_report_delta__colorize_False():
    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, color=False)
    assert (report_delta.generate() == 'Filename         Stmts      Miss  Cover    Missing\n---------------  -------  ------  -------  ----------\ndummy/dummy.py   -            -2  +40.00%  -5, -6\ndummy/dummy2.py  +2           +1  -25.00%  -2, -4, +5\ndummy/dummy3.py  +2           +2  -        +1, +2\nTOTAL            +4           +1  +31.06%')