

def test_doctype_html_detection(self):
    gen = self.get_generator('sample_doctype.html')
    html_view = osview.HTMLView(gen)
    i = iter(html_view)
    self.assertFalse(html_view.is_html)
    i.next()
    self.assertTrue(html_view.is_html)

dataset/ETHPy150Open openstack-infra/os-loganalyze/os_loganalyze/tests/test_views.py TestViews.test_doctype_html_detection/original