

def test_empty_file_html_view(self):
    gen = self.get_generator('empty.html')
    html_view = osview.HTMLView(gen)
    self.assertFalse(html_view.is_html)
    full_text = ''
    for i in html_view:
        full_text += i
    self.assertEqual('', full_text)

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