Merge pull request #138 from IlyaSukhanov/master

Implement internet gateway mocking
This commit is contained in:
Steve Pulec 2014-06-17 22:28:16 -04:00
commit aec7d8e998
6 changed files with 298 additions and 33 deletions

View file

@ -50,7 +50,7 @@ def random_eip_association_id():
return random_id(prefix='eipassoc')
def random_gateway_id():
def random_internet_gateway_id():
return random_id(prefix='igw')
@ -157,7 +157,7 @@ def dhcp_configuration_from_querystring(querystring, option=u'DhcpConfiguration'
def filters_from_querystring(querystring_dict):
response_values = {}
for key, value in querystring_dict.iteritems():
match = re.search("Filter.(\d).Name", key)
match = re.search(r"Filter.(\d).Name", key)
if match:
filter_index = match.groups()[0]
value_prefix = "Filter.{0}.Value".format(filter_index)