Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)