Adding upstream version 1.9.1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
2bf0435a35
commit
031879240c
356 changed files with 26924 additions and 0 deletions
15
tests/unittests/command_parse/test_pubsub.py
Normal file
15
tests/unittests/command_parse/test_pubsub.py
Normal file
|
@ -0,0 +1,15 @@
|
|||
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"},
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue