コード例 #1
0
ファイル: serialisation_tests.py プロジェクト: helgim/asynqp
 def because_I_pack_them(self, timeval):
     packed = serialisation.pack_timestamp(timeval)
     unpacked = serialisation.read_timestamp(BytesIO(packed))
     self.result = unpacked - timeval
コード例 #2
0
 def because_I_pack_them(self, timeval):
     packed = serialisation.pack_timestamp(timeval)
     unpacked = serialisation.read_timestamp(BytesIO(packed))
     self.result = unpacked - timeval
コード例 #3
0
ファイル: serialisation_tests.py プロジェクト: helgim/asynqp
 def because_we_read_a_timestamp(self, binary, _):
     self.result = serialisation.read_timestamp(BytesIO(binary))
コード例 #4
0
 def because_we_read_a_timestamp(self, binary, _):
     self.result = serialisation.read_timestamp(BytesIO(binary))