dynamodb v2 no indexes

This commit is contained in:
creyer 2013-12-05 13:16:56 +02:00 committed by Sorin
commit 48cfd19fe6
12 changed files with 1509 additions and 0 deletions

View file

@ -0,0 +1,18 @@
import sure # noqa
import moto.server as server
'''
Test the different server responses
'''
server.configure_urls("dynamodb2")
def test_table_list():
test_client = server.app.test_client()
res = test_client.get('/')
res.status_code.should.equal(404)
headers = {'X-Amz-Target': 'TestTable.ListTables'}
res = test_client.get('/', headers=headers)
res.data.should.contain('TableNames')