summaryrefslogtreecommitdiff
path: root/tests/test_swiftstory.py
blob: c2780d55a4f84efd3850d2c40017274021ee2693 (plain)
1
2
3
4
5
6
7
8
9
10
11
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}")
                )