#NEWLINE# def test_ha_network_delete_ha_and_non_ha_router( self ) : #NEWLINE# #INDENT# router1 = self . _create_router ( ha = False ) #NEWLINE# router2 = self . _create_router ( ) #NEWLINE# nets_before = [ net [ 'name' ] for net in self . core_plugin . get_networks ( self . admin_ctx ) ] #NEWLINE# self . assertIn ( ( 'HA network tenant %s' % router1 [ 'tenant_id' ] ) , nets_before ) #NEWLINE# self . plugin . delete_router ( self . admin_ctx , router2 [ 'id' ] ) #NEWLINE# nets_after = [ net [ 'name' ] for net in self . core_plugin . get_networks ( self . admin_ctx ) ] #NEWLINE# self . assertNotIn ( ( 'HA network tenant %s' % router1 [ 'tenant_id' ] ) , self )