Ejemplo n.º 1
0
 def test_got_chat_link_no_protocol(self):
     with mock.patch("eventlet.spawn") as spawn:
         receivers.got_chat_link(None, content="www.google.com")
     spawn.assert_called_with(receivers.process_link, "www.google.com")
Ejemplo n.º 2
0
 def test_got_chat_link(self):
     with mock.patch("eventlet.spawn") as spawn:
         receivers.got_chat_link(None, content="I really like http://google.com fonts")
     spawn.assert_called_with(receivers.process_link, "http://google.com")