#NEWLINE# def _prepare_schedule_snat_tests( self ) : #NEWLINE# #INDENT# agent = agents_db . Agent ( ) #NEWLINE# agent . admin_state_up = True #NEWLINE# agent . heartbeat_timestamp = timeutils . utcnow ( ) #NEWLINE# router = { #NEWLINE# #INDENT# 'id' : 'foo_router_id' , #NEWLINE# 'distributed' : True , #NEWLINE# 'external_gateway_info' : { #NEWLINE# #INDENT# 'network_id' : str ( uuid . uuid4 ( ) ) , #NEWLINE# 'enable_snat' : True , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# return ( agent , router )