예제 #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")
예제 #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")