

def test_retry_filter_fail(self):
    host = fakes.FakeHostState('host1', 'node1', {
        
    })
    retry = objects.SchedulerRetries(num_attempts=1, hosts=objects.ComputeNodeList(objects=[objects.ComputeNode(host='host1', hypervisor_hostname='node1')]))
    spec_obj = objects.RequestSpec(retry=retry)
    self.assertFalse(self.filt_cls.host_passes(host, spec_obj))

dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/scheduler/filters/test_retry_filters.py TestRetryFilter.test_retry_filter_fail/original