Пример #1
0
 def test_json_string(self):
     message = Message(notification=MockNotification())
     with self.assertRaises(NotImplementedError):
         message.send()
Пример #2
0
 def test_init_notification_none(self):
     with self.assertRaises(ValueError):
         Message(notification=None)
Пример #3
0
 def test_init_notification_value(self):
     with self.assertRaises(TypeError):
         Message(notification='abcd')