#NEWLINE# def test_auto_schedule_routers_no_target_routers( self ) : #NEWLINE# #INDENT# self . plugin . get_enabled_agent_on_host . return_value = [ mock . ANY ] #NEWLINE# with mock . patch . object ( self . scheduler , '_get_routers_to_schedule' ) as mock_unscheduled_routers , mock . patch . object ( self . scheduler , '_get_routers_can_schedule' ) as mock_target_routers : #NEWLINE# #INDENT# mock_unscheduled_routers . return_value = mock . ANY #NEWLINE# mock_target_routers . return_value = None #NEWLINE# result = self . scheduler . auto_schedule_routers ( result . plugin , mock . ANY , mock . ANY , mock . ANY ) #NEWLINE# #UNINDENT# self . assertTrue ( self . plugin . get_enabled_agent_on_host . called ) #NEWLINE# self . assertFalse ( result )