Esempio n. 1
0
 def because_I_pack_them(self, timeval):
     packed = serialisation.pack_timestamp(timeval)
     unpacked = serialisation.read_timestamp(BytesIO(packed))
     self.result = unpacked - timeval
Esempio n. 2
0
 def because_I_pack_them(self, timeval):
     packed = serialisation.pack_timestamp(timeval)
     unpacked = serialisation.read_timestamp(BytesIO(packed))
     self.result = unpacked - timeval
Esempio n. 3
0
 def because_I_pack_them(self, timeval, _):
     self.result = serialisation.pack_timestamp(timeval)
Esempio n. 4
0
 def because_I_pack_them(self, timeval, _):
     self.result = serialisation.pack_timestamp(timeval)