def test_html_report():
    from pycobertura.reporters import HtmlReporter
    cobertura = make_cobertura()
    report = HtmlReporter(cobertura)
    html_output = report.generate()
    assert ('normalize.css' in html_output)
    assert ('Skeleton V2.0' in html_output)
    assert (remove_style_tag(html_output) == '<html>\n  <head>\n    <title>pycobertura report</title>\n    <meta charset="UTF-8">\n  </head>\n  <body>\n    <div class="container">\n      <table class="u-full-width">\n        <thead>\n          <tr>\n            <th>Filename</th>\n            <th>Stmts</th>\n            <th>Miss</th>\n            <th>Cover</th>\n            <th>Missing</th>\n          </tr>\n        </thead>\n        <tbody>\n          <tr>\n            <td><a href="#Main.java">Main.java</a></td>\n            <td>11</td>\n            <td>0</td>\n            <td>100.00%</td>\n            <td></td>\n          </tr>\n          <tr>\n            <td><a href="#search/BinarySearch.java">search/BinarySearch.java</a></td>\n            <td>12</td>\n            <td>1</td>\n            <td>91.67%</td>\n            <td>24</td>\n          </tr>\n          <tr>\n            <td><a href="#search/ISortedArraySearch.java">search/ISortedArraySearch.java</a></td>\n            <td>0</td>\n            <td>0</td>\n            <td>100.00%</td>\n            <td></td>\n          </tr>\n          <tr>\n            <td><a href="#search/LinearSearch.java">search/LinearSearch.java</a></td>\n            <td>7</td>\n            <td>2</td>\n            <td>71.43%</td>\n            <td>19-24</td>\n          </tr>\n        </tbody>\n        <tfoot>\n          <tr>\n            <td>TOTAL</td>\n            <td>30</td>\n            <td>3</td>\n            <td>90.00%</td>\n            <td></td>\n          </tr>\n        </tfoot>\n      </table>\n<h4 id="Main.java">Main.java</h4>\n<table class="code u-max-full-width">\n  <tbody>\n    <tr>\n      <td class="lineno">\n        <pre>0 &nbsp;\n</pre>\n      </td>\n      <td class="source">\n        <pre><span class="noop">tests/Main.java not found</span></pre>\n      </td>\n    </tr>\n  </tbody>\n</table>\n<h4 id="search/BinarySearch.java">search/BinarySearch.java</h4>\n<table class="code u-max-full-width">\n  <tbody>\n    <tr>\n      <td class="lineno">\n        <pre>0 &nbsp;\n</pre>\n      </td>\n      <td class="source">\n        <pre><span class="noop">tests/search/BinarySearch.java not found</span></pre>\n      </td>\n    </tr>\n  </tbody>\n</table>\n<h4 id="search/ISortedArraySearch.java">search/ISortedArraySearch.java</h4>\n<table class="code u-max-full-width">\n  <tbody>\n    <tr>\n      <td class="lineno">\n        <pre>0 &nbsp;\n</pre>\n      </td>\n      <td class="source">\n        <pre><span class="noop">tests/search/ISortedArraySearch.java not found</span></pre>\n      </td>\n    </tr>\n  </tbody>\n</table>\n<h4 id="search/LinearSearch.java">search/LinearSearch.java</h4>\n<table class="code u-max-full-width">\n  <tbody>\n    <tr>\n      <td class="lineno">\n        <pre>0 &nbsp;\n</pre>\n      </td>\n      <td class="source">\n        <pre><span class="noop">tests/search/LinearSearch.java not found</span></pre>\n      </td>\n    </tr>\n  </tbody>\n</table>\n    </div>\n  </body>\n</html>')
def test_html_report():
    from pycobertura.reporters import HtmlReporter
    cobertura = make_cobertura()
    report = HtmlReporter(cobertura)
    html_output = report.generate()
    assert ('normalize.css' in html_output)
    assert ('Skeleton V2.0' in html_output)
    assert (remove_style_tag(html_output) == '<html>\n  <head>\n    <title>pycobertura report</title>\n    <meta charset="UTF-8">\n  </head>\n  <body>\n    <div class="container">\n      <table class="u-full-width">\n        <thead>\n          <tr>\n            <th>Filename</th>\n            <th>Stmts</th>\n            <th>Miss</th>\n            <th>Cover</th>\n            <th>Missing</th>\n          </tr>\n        </thead>\n        <tbody>\n          <tr>\n            <td><a href="#Main.java">Main.java</a></td>\n            <td>11</td>\n            <td>0</td>\n            <td>100.00%</td>\n            <td></td>\n          </tr>\n          <tr>\n            <td><a href="#search/BinarySearch.java">search/BinarySearch.java</a></td>\n            <td>12</td>\n            <td>1</td>\n            <td>91.67%</td>\n            <td>24</td>\n          </tr>\n          <tr>\n            <td><a href="#search/ISortedArraySearch.java">search/ISortedArraySearch.java</a></td>\n            <td>0</td>\n            <td>0</td>\n            <td>100.00%</td>\n            <td></td>\n          </tr>\n          <tr>\n            <td><a href="#search/LinearSearch.java">search/LinearSearch.java</a></td>\n            <td>7</td>\n            <td>2</td>\n            <td>71.43%</td>\n            <td>19-24</td>\n          </tr>\n        </tbody>\n        <tfoot>\n          <tr>\n            <td>TOTAL</td>\n            <td>30</td>\n            <td>3</td>\n            <td>90.00%</td>\n            <td></td>\n          </tr>\n        </tfoot>\n      </table>\n<h4 id="Main.java">Main.java</h4>\n<table class="code u-max-full-width">\n  <tbody>\n    <tr>\n      <td class="lineno">\n        <pre>0 &nbsp;\n</pre>\n      </td>\n      <td class="source">\n        <pre><span class="noop">tests/Main.java not found</span></pre>\n      </td>\n    </tr>\n  </tbody>\n</table>\n<h4 id="search/BinarySearch.java">search/BinarySearch.java</h4>\n<table class="code u-max-full-width">\n  <tbody>\n    <tr>\n      <td class="lineno">\n        <pre>0 &nbsp;\n</pre>\n      </td>\n      <td class="source">\n        <pre><span class="noop">tests/search/BinarySearch.java not found</span></pre>\n      </td>\n    </tr>\n  </tbody>\n</table>\n<h4 id="search/ISortedArraySearch.java">search/ISortedArraySearch.java</h4>\n<table class="code u-max-full-width">\n  <tbody>\n    <tr>\n      <td class="lineno">\n        <pre>0 &nbsp;\n</pre>\n      </td>\n      <td class="source">\n        <pre><span class="noop">tests/search/ISortedArraySearch.java not found</span></pre>\n      </td>\n    </tr>\n  </tbody>\n</table>\n<h4 id="search/LinearSearch.java">search/LinearSearch.java</h4>\n<table class="code u-max-full-width">\n  <tbody>\n    <tr>\n      <td class="lineno">\n        <pre>0 &nbsp;\n</pre>\n      </td>\n      <td class="source">\n        <pre><span class="noop">tests/search/LinearSearch.java not found</span></pre>\n      </td>\n    </tr>\n  </tbody>\n</table>\n    </div>\n  </body>\n</html>')