def test_reserve_experiment_waiting_instances(self):

        self.coordinator.mark_experiment_as_broken(ExperimentInstanceId("inst1", "exp1","cat1"), ['err'])
        self.coordinator.mark_experiment_as_broken(ExperimentInstanceId("inst2", "exp1","cat1"), ['err'])


        status, reservation1_id = self.coordinator.reserve_experiment(ExperimentId("exp1","cat1"), DEFAULT_TIME, DEFAULT_PRIORITY, True, DEFAULT_INITIAL_DATA, DEFAULT_REQUEST_INFO, DEFAULT_CONSUMER_DATA)
        expected_status = WSS.WaitingInstancesQueueStatus(reservation1_id, 0)
        self.assertEquals( expected_status, status )

        status, reservation2_id = self.coordinator.reserve_experiment(ExperimentId("exp1","cat1"), DEFAULT_TIME, DEFAULT_PRIORITY, True, DEFAULT_INITIAL_DATA, DEFAULT_REQUEST_INFO, DEFAULT_CONSUMER_DATA)
        expected_status = WSS.WaitingInstancesQueueStatus(reservation2_id, 1)
        self.assertEquals( expected_status, status )
Removes all the instances and then reserve
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/test/unit/weblab/core/coordinator/test_coordinator.py/AbstractCoordinatorTestCase.test_reserve_experiment_waiting_instances