def METHOD_NAME(self) -> None:
    cases = [("if (foo):", 0), ("assert (1 == 1)", 0)]
    for code, offset in cases:
        self.checker._check_keyword_parentheses(_tokenize_str(code), offset)
        got = self.linter.release_messages()
        assert isinstance(got[-1].args, str)