Exemplo n.º 1
0
 def create_response(self, envelope):
     return PNHistoryResult.from_json(
         json_input=envelope,
         crypto=self.pubnub.config.crypto,
         include_timetoken=self._include_timetoken,
         include_meta=self._include_meta,
         cipher=self.pubnub.config.cipher_key)
 def test_history(self):
     assert str(PNHistoryResult(None, 123,
                                789)) == "History result for range 123..789"
Exemplo n.º 3
0
 def create_response(self, envelope):
     return PNHistoryResult.from_json(envelope, self._include_timetoken, self.pubnub.config.cipher_key)