#NEWLINE# def test_chance_schedule_router( self ) : #NEWLINE# #INDENT# self . _pre_scheduler_routers ( self . scheduler , self . scheduled_router_count ) #NEWLINE# actual_scheduled_agent = self . scheduler . schedule ( self . l3_plugin , self . adminContext , self . routers [ ( - 1 ) ] [ 'id' ] ) #NEWLINE# if self . expected_scheduled_router_count : #NEWLINE# #INDENT# self . assertIsNotNone ( actual_scheduled_agent , message = 'Failed to schedule agent' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . assertIsNone ( actual_scheduled_agent , message = 'Agent scheduled but not expected' )