def test_coordination_parse_resources_for_experiment_ids(self):
        self.cfg_manager._set_value(CoordinationConfigurationParser.COORDINATOR_LABORATORY_SERVERS, {
                        'laboratory1:WL_SERVER1@WL_MACHINE1' : {
                                'exp1|ud-fpga|FPGA experiments' : 'fpga1@fpga boards',
                                'exp1|ud-pld|PLD experiments'   : 'pld1@pld boards',
                                'exp1|ud-logic|PIC experiments' : 'pld1@pld boards'
                            },
                        'laboratory2:WL_SERVER1@WL_MACHINE1' : {
                                'exp2|ud-fpga|FPGA experiments' : 'fpga1@fpga boards',
                                'exp2|ud-pld|PLD experiments' : 'pld1@pld boards',
                                'exp2|ud-logic|PIC experiments' : 'fpga1@fpga boards'
                            },
                    })
        self.cfg_manager._set_value(CoordinationConfigurationParser.COORDINATOR_EXTERNAL_SERVERS, {
                        'ud-pld@PLD experiments' : ['weblab_university1', 'weblab_university2'],
                        'visir@VISIR experiments' : ['weblab_university3']
                    })

        configuration = self.coordination_configuration_parser.parse_resources_for_experiment_ids()
        self.assertTrue('ud-pld@PLD experiments'   in configuration)
        self.assertTrue('ud-fpga@FPGA experiments' in configuration)
        self.assertTrue(configuration in 'ud-logic@PIC experiments')
        self.assertEquals(set(('pld boards','weblab_university1','weblab_university2')),  configuration['ud-pld@PLD experiments'])
        self.assertEquals(set(('weblab_university3',)),  configuration['visir@VISIR experiments'])
        self.assertEquals(set(('fpga boards',)), configuration['ud-fpga@FPGA experiments'])
        self.assertEquals(set(('pld boards', 'fpga boards')), configuration['ud-logic@PIC experiments'])
dataset/ETHPy150Open weblabdeusto/weblabdeusto/server/src/test/unit/weblab/core/coordinator/test_config_parser.py/CoordinationConfigurationParserTestCase.test_coordination_parse_resources_for_experiment_ids/swapped operands of `in`