#NEWLINE# @ async_test #NEWLINE# def testTables( self ) : #NEWLINE# #INDENT# lr = self . _client . ListTables ( callback = None ) #NEWLINE# self . assertTrue ( ( 'NewTable1' not in lr . tables ) ) #NEWLINE# cr = self . _client . CreateTable ( 'NewTable1' , _hash_key_schema , _range_key_schema , 5 , 10 , callback = None ) #NEWLINE# self . assertEqual ( cr . schema . status , 'CREATING' ) #NEWLINE# cr = self . _client . CreateTable ( 'NewTable2' , _hash_key_schema , None , 5 , 10 , callback = None ) #NEWLINE# self . assertEqual ( cr . schema . status , 'CREATING' ) #NEWLINE# lr = self . _client . ListTables ( callback = None ) #NEWLINE# self . assertTrue ( ( 'NewTable1' in lr . tables ) ) #NEWLINE# self . assertTrue ( ( 'NewTable2' in lr . tables ) ) #NEWLINE# for table in lr . tables : #NEWLINE# #INDENT# dr = self . _client . DescribeTable ( table , callback = None ) #NEWLINE# self . assertEqual ( dr . schema . status , 'ACTIVE' ) #NEWLINE# #UNINDENT# cr1 = self . _client . DeleteTable ( table = 'NewTable1' , callback = None ) #NEWLINE# cr2 = self . _client . DeleteTable ( table = 'NewTable2' , callback = None ) #NEWLINE# self . assertEqual ( cr1 . schema . status , 'DELETING' ) #NEWLINE# self . assertEqual ( cr2 . schema . status , 'DELETING' ) #NEWLINE# lr = self . _client . ListTables ( callback = None ) #NEWLINE# self . assertTrue ( ( 'NewTable1' not in lr . tables ) ) #NEWLINE# self . assertTrue ( ( 'NewTable2' not in cr2 . tables ) ) #NEWLINE# self . stop ( )