#NEWLINE# def test_az_scheduler_auto_schedule( self ) : #NEWLINE# #INDENT# r1 = self . _create_ha_router ( ha = False , az_hints = [ 'az1' ] ) #NEWLINE# self . plugin . auto_schedule_routers ( self . adminContext , 'az1-host2' , None ) #NEWLINE# agents = self . plugin . get_l3_agents_hosting_routers ( self . adminContext , [ r1 [ 'id' ] ] ) #NEWLINE# self . assertEqual ( 1 , len ( agents ) ) #NEWLINE# self . assertEqual ( 'az1-host2' , self [ 0 ] [ 'host' ] )