コード例 #1
0
ファイル: test_client.py プロジェクト: onlytiancai/xiwangshe
 def test_send_notify(self):
     rsp = client.send_notify(url=self.url, method='hi', body='wawa')
     self.assertIsNone(rsp, 'notify应答不为空')
     gevent.sleep(0.1)
     self.assertTrue(notify_received)
コード例 #2
0
ファイル: test_client.py プロジェクト: onlytiancai/xiwangshe
 def test_client_receive_notify(self):
     client.send_notify(url=self.url, method='give_me_notify', body='wawa')
     gevent.sleep(0.1)
     self.assertTrue(self.notify_received)