def test_float_pack_int(self): self.assertEqual(parameters.Float._pack(10), str(repack_to_int(10.0)).encode())
def _pack(value): return str(repack_to_int(value)).encode()
def test_float_pack_int(self): self.assertEqual( parameters.Float._pack(10), str(repack_to_int(10.)).encode(), )
def test_mdot8(self): ''' According to ARDrone Developer Guide chapter 6.3, -0.8 can be considered as holding the 32-bit integer value −1085485875 ''' self.assertEqual(repack_to_int(-0.8), -1085485875)