def test_get_circuit(self):
        circuit1a = self.experiment.do_send_command_to_device('GET_CIRCUIT')
        circuit1b = self.experiment.do_send_command_to_device('GET_CIRCUIT')
        self.assertEquals(circuit1a, circuit1b)

        any_ok = False
        for _ in xrange(10):
            for operation in LogicExperiment.Gate.operations:
                result = self.experiment.do_send_command_to_device('SOLVE %s' % operation)
                if result.startswith('OK'):
                    self.assertEquals(result, 'OK: 1')
                    any_ok = True
                    break
            if any_ok:
                break

        self.assertTrue(any_ok)
        circuit2 = self.experiment.do_send_command_to_device('GET_CIRCUIT')
        self.assertNotEquals(circuit1a, circuit2)
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/test/unit/experiments/ud_logic/test_server.py/LogicExperimentTestCase.test_get_circuit/original