Exemple #1
0
 def deserialize(data):
     return SystemID(
         data[SystemID.SERIAL_NAME_ID_KEY],
         version_id=Version.deserialize(data[SystemID.SERIAL_VERSION_ID_KEY]),
         biiType=BiiType.deserialize(data[SystemID.SERIAL_BIITYPE_KEY]),
         language_version=Version.deserialize(data[SystemID.SERIAL_LANGUAGE_VERSION_KEY]),
         os_info=OSInfo.deserialize(data[SystemID.SERIAL_OS_INFO_KEY]),
         tool_info=ToolInfo.deserialize(data[SystemID.SERIAL_TOOL_INFO_KEY]),
         path=data[SystemID.SERIAL_PATH_KEY],
     )
Exemple #2
0
 def tool_info_serialization_test(self):
     tool = ToolInfo()
     serial = tool.serialize()
     deserial = ToolInfo.deserialize(serial)
     self.assertEquals(tool, deserial)
 def tool_info_serialization_test(self):
     tool = ToolInfo()
     serial = tool.serialize()
     deserial = ToolInfo.deserialize(serial)
     self.assertEquals(tool, deserial)