def _expected_devices_events(self, devices, state):
        events = self.monitor.get_events()
        event_devices = [
            (dev['name'], dev['external_ids']) for dev in events.get(state)]
        for dev in event_devices:
            if dev[0] in devices:
                devices.remove(dev[0])
                self.assertEqual(dev[1].get('iface-status'), 'active')
            if not devices:
                return True
Parse command line options.
dataset/ETHPy150Open openstack/neutron/neutron/tests/functional/agent/linux/test_ovsdb_monitor.py/TestSimpleInterfaceMonitor._expected_devices_events--crossover with--dataset/ETHPy150Open enthought/mayavi/mayavi/plugins/app.py/Mayavi.parse_command_line