summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
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 51dc837..d340613 100644
--- a/tests/test_swiftstory.py
+++ b/tests/test_swiftstory.py
@@ -40,3 +40,10 @@ class TestSwiftStory(unittest.TestCase):
error("invalid command"),
SwiftStory.message_received_handler(client=None, message='{}')
)
+
+ def test_play_card_not_specified(self):
+ payload = '{"op": "play_white_card"}'
+ self.assertEqual(
+ error("field `card_id' is required"),
+ SwiftStory.message_received_handler(client=None, message=payload)
+ )