#NEWLINE# def test_validate_igw_or_vgw_id( self ) : #NEWLINE# #INDENT# validator = route_table_api . Validator ( ) #NEWLINE# validator . igw_or_vgw_id ( fakes . random_ec2_id ( 'igw' ) ) #NEWLINE# validator . igw_or_vgw_id ( fakes . random_ec2_id ( 'vgw' ) ) #NEWLINE# invalid_ids = [ '1234' , 'a-1111' , '' , 'i-1111' , 'i-rrr' , 'foobar' , fakes . random_ec2_id ( 'eni' ) , fakes . random_ec2_id ( 'i' ) , fakes . random_ec2_id ( 'rtb' ) , fakes . random_ec2_id ( 'vpn' ) ] #NEWLINE# for id in invalid_ids : #NEWLINE# #INDENT# self . assertRaises ( exception . InvalidParameterValue , validator . igw_or_vgw_id , id )