def test_json_string(self): message = Message(notification=MockNotification()) with self.assertRaises(NotImplementedError): message.send()
def test_init_notification_none(self): with self.assertRaises(ValueError): Message(notification=None)
def test_init_notification_value(self): with self.assertRaises(TypeError): Message(notification='abcd')