def METHOD_NAME():
    with assert_raises(DeprecationWarning, msg="unexpected"):
        with filter_warnings("default", "nomatch") as log:
            warnings.warn("unexpected", DeprecationWarning)
    eq(log, [])