#NEWLINE# def test_filter_hosts_avoid( self ) : #NEWLINE# #INDENT# 'Test to make sure _filter_hosts() filters original hosts if\n        avoid_original_host is True.\n        ' #NEWLINE# hosts = [ 'host1' , 'host2' , 'host3' ] #NEWLINE# spec_obj = objects . RequestSpec ( ignore_hosts = [ 'host2' ] ) #NEWLINE# filtered = self . driver . _filter_hosts ( hosts , spec_obj = spec_obj ) #NEWLINE# self . assertEqual ( filtered , [ 'host1' , 'host3' ] )