#NEWLINE# def test_reschedule_doesnt_occur_if_no_agents( self ) : #NEWLINE# #INDENT# agents = self . _create_and_set_agents_down ( [ 'host-a' , 'host-b' ] , 2 ) #NEWLINE# self . _test_schedule_bind_network ( [ agents [ 0 ] ] , self . network_id ) #NEWLINE# with mock . patch . object ( self , 'remove_network_from_dhcp_agent' ) as rn : #NEWLINE# #INDENT# self . remove_networks_from_down_agents ( ) #NEWLINE# self . assertFalse ( rn . called )