#!/usr/bin/python3 import html2text html = """

heading

""" text = html2text.html2text(html) print(text) if "### heading" not in text: print("Heading not converted.") raise SystemExit(1) if "* item" not in text: print("List item not converted.") raise SystemExit(1)