def METHOD_NAME(self) -> None:
    """Test positive superfluous parens cases with the walrus operator."""
    cases = [
        (
            MessageTest("superfluous-parens", line=1, args="if"),
            "if ((x := y)):\n",
        ),
        (
            MessageTest("superfluous-parens", line=1, args="not"),
            "if not ((x := y)):\n",
        ),
    ]
    for msg, code in cases:
        with self.assertAddsMessages(msg):
            self.checker.process_tokens(_tokenize_str(code))