def METHOD_NAME(self, indent, expect):
    # Pretty-print a tree with a Formatter set to
    # indent in a certain way and verify the results.
    soup = self.soup("<a><b>text</b></a>")
    formatter = Formatter(indent=indent)
    assert soup.prettify(formatter=formatter) == expect
    # Pretty-printing only happens with prettify(), not
    # encode().
    assert soup.encode(formatter=formatter) != expect