def METHOD_NAME(*, actual_html: str, find=None, expected_html: str = None):
    from bs4 import BeautifulSoup
    if expected_html is None:
        expected_html = '<html/>'
    expected_soup = BeautifulSoup(expected_html, 'html.parser')
    actual_soup = BeautifulSoup(actual_html, 'html.parser')
    if find is not None:
        actual_soup = actual_soup.find(**find)
        if not actual_soup:  # pragma: no cover
            prettied_actual = reindent(actual_soup.prettify()).strip()
            print(prettied_actual)
            assert False, f"Couldn't find selector {find} in actual output"
        expected_soup = expected_soup.find(**find)
    prettified_actual = reindent(actual_soup.prettify()).strip()
    prettified_expected = reindent(expected_soup.prettify()).strip()
    if prettified_actual != prettified_expected:  # pragma: no cover
        print("Expected")
        print(prettified_expected)
        print("Actual")
        print(prettified_actual)
    assert prettified_actual == prettified_expected