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)
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)