moto/tests/test_dynamodb/test_dynamodb.py
2013-02-19 20:01:31 -05:00

13 lines
296 B
Python

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