#NEWLINE# def test_scheduler_two_agents_per_network( self ) : #NEWLINE# #INDENT# cfg . CONF . set_override ( 'dhcp_agents_per_network' , 2 ) #NEWLINE# net_id = self . _create_network ( ) #NEWLINE# helpers . register_dhcp_agent ( HOST_C ) #NEWLINE# helpers . register_dhcp_agent ( HOST_D ) #NEWLINE# self . plugin . network_scheduler . schedule ( self . plugin , self . ctx , { #NEWLINE# #INDENT# 'id' : net_id , #NEWLINE# #UNINDENT# } ) #NEWLINE# agents = self . plugin . get_dhcp_agents_hosting_networks ( self . ctx , [ self ] ) #NEWLINE# self . assertEqual ( 2 , len ( agents ) )