#NEWLINE# def test_get_dhcp_hosts_for_nw01( self ) : #NEWLINE# #INDENT# self . flags ( use_single_default_gateway = True ) #NEWLINE# expected = 'DE:AD:BE:EF:00:02,fake_instance01.novalocal,192.168.0.101,net:NW-2\nDE:AD:BE:EF:00:05,fake_instance01.novalocal,192.168.1.102,net:NW-5' #NEWLINE# fixedips = self . _get_fixedips ( networks [ 1 ] , host = 'fake_instance01' ) #NEWLINE# actual_hosts = self . driver . get_dhcp_hosts ( self . context , networks [ 1 ] , fixedips ) #NEWLINE# self . assertEqual ( expected , actual_hosts )