def test_wait_with_disconnect(self):
        'Exit loop when the client wants to disconnect'
        self.socketIO.define(Namespace)
        self.socketIO.disconnect()
        timeout_in_seconds = 5
        start_time = time.time()
        self.socketIO.wait(timeout_in_seconds)
        self.assertTrue(time.time() - start_time < timeout_in_seconds)
dataset/ETHPy150Open invisibleroads/socketIO-client/socketIO_client/tests/__init__.py/BaseMixin.test_wait_with_disconnect/original