def finished_testing(self):
    if hasattr(self.platform_device, 'finished_testing'):
        self.platform_device.finished_testing()
    self.listening_socket = None
def finished_testing(self):
    if hasattr(self.platform_device, 'finished_testing'):
        self.platform_device.finished_testing()
    self.listening_socket = None