'Test to make sure _filter_hosts() filters original hosts if
avoid_original_host is True.'

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'])
