Пример #1
0
 def test_msg_with_HTML_inside(self):
     self.factory = MsgFactory(MockWebClient(HTMLFactory.msg_html()))
     res = self.factory.createMsg(HTMLFactory.msg_with_html)
     self.assertEqual(res['user'], "LudoNoticias")
     msg = MsgModel(res)
     self.assertEqual(msg.body()[:10], "Osprey Pub")
Пример #2
0
 def test_body(self):
     msg = MsgModel(self.msg_from_fragment)
     self.assertIn("Parece ser que este juego de Asyncro Games",
                   msg.body())