#NEWLINE# def test_reschedule_network_from_down_agent_failed_on_unexpected( self ) : #NEWLINE# #INDENT# agents = self . _create_and_set_agents_down ( [ 'host-a' ] , 1 ) #NEWLINE# self . _test_schedule_bind_network ( [ agents [ 0 ] ] , self . network_id ) #NEWLINE# with mock . patch . object ( agents , '_filter_bindings' , side_effect = Exception ( ) ) : #NEWLINE# #INDENT# self . remove_networks_from_down_agents ( )