コード例 #1
0
ファイル: test_receivers.py プロジェクト: pubbothq/pubbot
 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
ファイル: test_receivers.py プロジェクト: pubbothq/pubbot
 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")