#NEWLINE# @ classmethod #NEWLINE# @ base . safe_setup #NEWLINE# def setUpClass( cls ) : #NEWLINE# #INDENT# super ( InternetGatewayTest , cls ) . setUpClass ( ) #NEWLINE# if ( not base . TesterStateHolder ( ) . get_vpc_enabled ( ) ) : #NEWLINE# #INDENT# raise cls . skipException ( 'VPC is disabled' ) #NEWLINE# #UNINDENT# data = cls . client . create_vpc ( CidrBlock = data . VPC_CIDR ) #NEWLINE# cls . vpc_id = data [ 'Vpc' ] [ 'VpcId' ] #NEWLINE# cls . get_vpc_waiter ( ) . wait_available ( cls . vpc_id ) #NEWLINE# cls . addResourceCleanUpStatic ( cls . client . delete_vpc , VpcId = cls . vpc_id ) #NEWLINE# data = cls . client . create_vpc ( CidrBlock = cls . VPC_CIDR_ALT ) #NEWLINE# cls . vpc_id_alt = data [ 'Vpc' ] [ 'VpcId' ] #NEWLINE# cls . get_vpc_waiter ( ) . wait_available ( cls . vpc_id_alt ) #NEWLINE# cls . addResourceCleanUpStatic ( cls . client . delete_vpc , VpcId = cls . vpc_id_alt )