def METHOD_NAME(self, level_name: str, expected: str) -> None:
    """
    Test that logged deprecation warnings coming from deprecated()
    don't get another prefix.
    """
    record = self.make_record(
        "DEPRECATION: hello\nworld",
        level_name=level_name,
    )
    f = IndentingFormatter(fmt="%(message)s")
    assert f.format(record) == expected