1
0
Fork 0
iredis/tests/unittests/command_parse/test_pubsub.py
Daniel Baumann 031879240c
Adding upstream version 1.9.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-02-09 16:57:44 +01:00

15 lines
428 B
Python

def test_publish(judge_command):
judge_command(
"publish foo bar", {"command": "publish", "channel": "foo", "message": "bar"}
)
def test_subscribe(judge_command):
judge_command("subscribe foo bar", {"command": "subscribe", "channel": "bar"})
def test_pubsub(judge_command):
judge_command(
"PUBSUB NUMSUB foo bar",
{"command": "PUBSUB", "pubsubcmd": "NUMSUB", "channel": "bar"},
)