#NEWLINE# def test_get_filtered_hosts_with_ignore( self ) : #NEWLINE# #INDENT# fake_properties = objects . RequestSpec ( instance_uuid = 'fake-uuid' , ignore_hosts = [ 'fake_host1' , 'fake_host3' , 'fake_host5' , 'fake_multihost' ] , force_hosts = [ ] , force_nodes = [ ] ) #NEWLINE# info = { #NEWLINE# #INDENT# 'expected_objs' : [ self . fake_hosts [ 1 ] , self . fake_hosts [ 3 ] ] , #NEWLINE# 'expected_fprops' : fake_properties , #NEWLINE# #UNINDENT# } #NEWLINE# self . _mock_get_filtered_hosts ( info ) #NEWLINE# result = self . host_manager . get_filtered_hosts ( self . fake_hosts , info ) #NEWLINE# self . _verify_result ( info , result )