def METHOD_NAME(self):
    # Unlike other NavigableString subclasses, a DOCTYPE always ends
    # in a newline.
    doctype = Doctype("foo")
    soup = self.soup("")
    soup.insert(1, doctype)
    assert soup.encode() == b"<!DOCTYPE foo>\n"