def test_text_report__with_missing_range():
    from pycobertura.reporters import TextReporter
    cobertura = make_cobertura('tests/dummy.with-dummy2-no-cov.xml')
    report = TextReporter(cobertura)
    assert (report.generate() == 'Filename             Stmts    Miss  Cover    Missing\n-----------------  -------  ------  -------  ---------\ndummy/__init__.py        0       0  0.00%\ndummy/dummy.py           4       0  100.00%\ndummy/dummy2.py          2       2  0.00%    1-2\nTOTAL                    6       2  66.67%')
def test_text_report__with_missing_range():
    from pycobertura.reporters import TextReporter
    cobertura = make_cobertura('tests/dummy.with-dummy2-no-cov.xml')
    report = TextReporter(cobertura)
    assert (report.generate() == 'Filename             Stmts    Miss  Cover    Missing\n-----------------  -------  ------  -------  ---------\ndummy/__init__.py        0       0  0.00%\ndummy/dummy.py           4       0  100.00%\ndummy/dummy2.py          2       2  0.00%    1-2\nTOTAL                    6       2  66.67%')