def test_text_report():
    from pycobertura.reporters import TextReporter
    cobertura = make_cobertura()
    report = TextReporter(cobertura)
    assert (report.generate() == 'Filename                          Stmts    Miss  Cover    Missing\n------------------------------  -------  ------  -------  ---------\nMain.java                            11       0  100.00%\nsearch/BinarySearch.java             12       1  91.67%   24\nsearch/ISortedArraySearch.java        0       0  100.00%\nsearch/LinearSearch.java              7       2  71.43%   19-24\nTOTAL                                30       3  90.00%')
def test_text_report():
    from pycobertura.reporters import TextReporter
    cobertura = make_cobertura()
    report = TextReporter(cobertura)
    assert (report.generate() == 'Filename                          Stmts    Miss  Cover    Missing\n------------------------------  -------  ------  -------  ---------\nMain.java                            11       0  100.00%\nsearch/BinarySearch.java             12       1  91.67%   24\nsearch/ISortedArraySearch.java        0       0  100.00%\nsearch/LinearSearch.java              7       2  71.43%   19-24\nTOTAL                                30       3  90.00%')