#NEWLINE# def test_create_vpn_gateway( self ) : #NEWLINE# #INDENT# self . db_api . add_item . side_effect = tools . get_db_api_add_item ( fakes . ID_EC2_VPN_GATEWAY_2 ) #NEWLINE# resp = self . execute ( 'CreateVpnGateway' , { #NEWLINE# #INDENT# 'Type' : 'ipsec.1' , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertEqual ( { #NEWLINE# #INDENT# 'vpnGateway' : fakes . EC2_VPN_GATEWAY_2 , #NEWLINE# #UNINDENT# } , resp ) #NEWLINE# self . db_api . add_item . assert_called_once_with ( mock . ANY , 'vgw' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } )