Adding intitial DynamoDB setup and implementing ListTables target

This commit is contained in:
zmsmith 2013-02-19 08:26:05 -05:00
commit 5086e6e590
6 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,12 @@
import boto
from moto import mock_dynamodb
from moto.dynamodb import dynamodb_backend
@mock_dynamodb
def test_create_table():
name = "TestTable"
dynamodb_backend.create_table(name)
conn = boto.connect_dynamodb('the_key', 'the_secret')
assert conn.list_tables() == ['TestTable']