def test_pretty_print(): test_data = [{'hello': 'world'}] html = utils.prettyprint(test_data) soup = BeautifulSoup(html, 'html.parser') assert soup.th.text == 'hello'