#NEWLINE# @ base . skip_without_vpc ( ) #NEWLINE# def test_tag_internet_gateway( self ) : #NEWLINE# #INDENT# data = self . client . create_internet_gateway ( ) #NEWLINE# gw_id = data [ 'InternetGateway' ] [ 'InternetGatewayId' ] #NEWLINE# res_clean = self . addResourceCleanUp ( self . client . delete_internet_gateway , InternetGatewayId = gw_id ) #NEWLINE# def describe_func( * args , **kwargs ) : #NEWLINE# #INDENT# data = self . client . describe_internet_gateways ( * args , ** kwargs ) #NEWLINE# self . assertEqual ( 1 , len ( data [ 'InternetGateways' ] ) ) #NEWLINE# self . assertEqual ( gw_id , data [ 'InternetGateways' ] [ 0 ] [ 'InternetGatewayId' ] ) #NEWLINE# #UNINDENT# self . _test_tag_resource ( gw_id , 'internet-gateway' , describe_func ) #NEWLINE# self . client . delete_internet_gateway ( InternetGatewayId = gw_id ) #NEWLINE# self . cancelResourceCleanUp ( res_clean )