Test out py26 with new HTTPretty
This commit is contained in:
parent
fe1f3ec06c
commit
3bddbb4af3
23 changed files with 81 additions and 68 deletions
|
|
@ -34,7 +34,7 @@ class SecurityGroups(object):
|
|||
group = ec2_backend.create_security_group(name, description)
|
||||
if not group:
|
||||
# There was an exisitng group
|
||||
return "There was an existing security group with name {}".format(name), dict(status=409)
|
||||
return "There was an existing security group with name {0}".format(name), dict(status=409)
|
||||
template = Template(CREATE_SECURITY_GROUP_RESPONSE)
|
||||
return template.render(group=group)
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ class SecurityGroups(object):
|
|||
|
||||
if not group:
|
||||
# There was no such group
|
||||
return "There was no security group with name {}".format(name), dict(status=404)
|
||||
return "There was no security group with name {0}".format(name), dict(status=404)
|
||||
return DELETE_GROUP_RESPONSE
|
||||
|
||||
def describe_security_groups(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue