def test_GetVersionPayload(self): payload = self.GetVersionPayload() self.assertEqual(payload[0], s3g.host_query_command_dict['GET_VERSION']) self.assertEqual(payload[1:], s3g.encode_uint16(s3g.s3g_version))
def GetVersionPayload(self): payload = bytearray() payload.append(s3g.host_query_command_dict['GET_VERSION']) payload.extend(s3g.encode_uint16(s3g.s3g_version)) return payload