diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_swiftstory.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_swiftstory.py b/tests/test_swiftstory.py new file mode 100644 index 0000000..c2780d5 --- /dev/null +++ b/tests/test_swiftstory.py @@ -0,0 +1,12 @@ +import unittest + +import swiftstory.SwiftStory as SwiftStory +from swiftstory.Status import error + + +class TestSwiftStory(unittest.TestCase): + def test_invalid_message_received(self): + self.assertEqual( + error("badly formatted json"), + SwiftStory.message_received_handler(client=None, message="{invalid_json}") + ) |