summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2020-09-13 01:06:21 +0200
committerOlivier Gayot <olivier.gayot@sigexec.com>2020-09-13 01:06:21 +0200
commitfc2c01888755d398f1bce1d0fbfa1ee822acfef1 (patch)
tree8b2552fb61b6b99c9d01586cc7d48927b956302f /tests
parentafbea257b23a02b4dd39f09d39969da47d668500 (diff)
Add test for joining game without specifying the name
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/test_swiftstory.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_swiftstory.py b/tests/test_swiftstory.py
index d340613..ff6d71d 100644
--- a/tests/test_swiftstory.py
+++ b/tests/test_swiftstory.py
@@ -47,3 +47,10 @@ class TestSwiftStory(unittest.TestCase):
error("field `card_id' is required"),
SwiftStory.message_received_handler(client=None, message=payload)
)
+
+ def test_join_game_not_specified(self):
+ payload = '{"op": "join_game"}'
+ self.assertEqual(
+ error("field `game_name' is required"),
+ SwiftStory.message_received_handler(client=None, message=payload)
+ )