

def test_retry_filter_pass(self):
    host = fakes.FakeHostState('host1', 'nodeX', {
        
    })
    retry = objects.SchedulerRetries(num_attempts=2, hosts=objects.ComputeNodeList(objects=[objects.ComputeNode(host='host1', hypervisor_hostname='node1'), objects.ComputeNode(host='host2', hypervisor_hostname='node2')]))
    spec_obj = objects.RequestSpec(retry=retry)
    self.assertTrue(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_pass/original