diff options
-rw-r--r-- | tests/test_swiftstory.py | 7 |
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) + ) |