def test_filter_hosts_avoid(self):

        hosts = ['host1', 'host2', 'host3']
        spec_obj = objects.RequestSpec(ignore_hosts=['host2'])

        filtered = self.driver._filter_hosts(hosts, spec_obj=spec_obj)
        self.assertEqual(filtered, ['host1', 'host3'])
generated source for method updateMktDepth
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/scheduler/test_chance_scheduler.py/ChanceSchedulerTestCase.test_filter_hosts_avoid--crossover with--dataset/ETHPy150Open CarterBain/Medici/ib/ext/EWrapper.py/EWrapper.updateMktDepth