Clean up querystring logic.
This commit is contained in:
parent
ffcbaf366e
commit
8b278eb05d
14 changed files with 66 additions and 35 deletions
|
|
@ -6,11 +6,12 @@ import moto.server as server
|
|||
'''
|
||||
Test the different server responses
|
||||
'''
|
||||
server.configure_urls("ec2")
|
||||
|
||||
|
||||
def test_ec2_server_get():
|
||||
test_client = server.app.test_client()
|
||||
backend = server.create_backend_app("ec2")
|
||||
test_client = backend.test_client()
|
||||
|
||||
res = test_client.get('/?Action=RunInstances&ImageId=ami-60a54009')
|
||||
|
||||
groups = re.search("<instanceId>(.*)</instanceId>", res.data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue