#NEWLINE# @ freeze_time ( '2012-01-14' ) #NEWLINE# @ mock_dynamodb #NEWLINE# def test_create_table( ) : #NEWLINE# #INDENT# conn = boto . connect_dynamodb ( ) #NEWLINE# create_table ( conn ) #NEWLINE# expected = { #NEWLINE# #INDENT# 'Table' : { #NEWLINE# #INDENT# 'CreationDateTime' : 1326499200.0 , #NEWLINE# 'ItemCount' : 0 , #NEWLINE# 'KeySchema' : { #NEWLINE# #INDENT# 'HashKeyElement' : { #NEWLINE# #INDENT# 'AttributeName' : 'forum_name' , #NEWLINE# 'AttributeType' : 'S' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } , #NEWLINE# 'ProvisionedThroughput' : { #NEWLINE# #INDENT# 'ReadCapacityUnits' : 10 , #NEWLINE# 'WriteCapacityUnits' : 10 , #NEWLINE# #UNINDENT# } , #NEWLINE# 'TableName' : 'messages' , #NEWLINE# 'TableSizeBytes' : 0 , #NEWLINE# 'TableStatus' : 'ACTIVE' , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } #NEWLINE# conn . describe_table ( 'messages' ) . should . equal ( conn )