#NEWLINE# def test_route_update_with_route_via_another_tenant_subnet( self ) : #NEWLINE# #INDENT# my_tenant = 'tenant1' #NEWLINE# routes = [ { #NEWLINE# #INDENT# 'destination' : '135.207.0.0/16' , #NEWLINE# 'nexthop' : '10.0.1.3' , #NEWLINE# #UNINDENT# } ] #NEWLINE# with self . subnet ( cidr = '10.0.1.0/24' , tenant_id = 'notme' ) as subnet : #NEWLINE# #INDENT# with self . router ( tenant_id = my_tenant ) as r : #NEWLINE# #INDENT# body = self . _routes_update_prepare ( r [ 'router' ] [ 'id' ] , subnet [ 'subnet' ] [ 'id' ] , None , routes , tenant_id = my_tenant ) #NEWLINE# self . assertEqual ( routes , body [ 'router' ] [ 'routes' ] )