Added server testcase

This commit is contained in:
Terry Cain 2017-09-27 09:54:46 +01:00
parent dfb712848d
commit cecbbb70e1
No known key found for this signature in database
GPG Key ID: 14D90844E4E9B9F3

View File

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