Added server test

This commit is contained in:
Terry Cain 2017-10-22 21:36:39 +01:00
parent ca3a3633e9
commit fbc984933b
No known key found for this signature in database
GPG Key ID: 14D90844E4E9B9F3

View File

@ -9,8 +9,11 @@ from moto import mock_batch
Test the different server responses
'''
@mock_batch
def test_batch_list():
backend = server.create_backend_app("batch")
test_client = backend.test_client()
# do test
res = test_client.get('/v1/describecomputeenvironments')
res.status_code.should.equal(200)