Example #1
0
 def test_describe_during_delete(self):
     """ Describing a table during a delete operation should not crash """
     response = {
         'ItemCount': 0,
         'ProvisionedThroughput': {
             'NumberOfDecreasesToday': 0,
             'ReadCapacityUnits': 5,
             'WriteCapacityUnits': 5
         },
         'TableName': 'myTableName',
         'TableSizeBytes': 0,
         'TableStatus': 'DELETING'
     }
     table = Table.from_response(response)
     self.assertEqual(table.status, 'DELETING')
Example #2
0
 def test_describe_during_delete(self):
     """ Describing a table during a delete operation should not crash """
     response = {
         'ItemCount': 0,
         'ProvisionedThroughput': {
             'NumberOfDecreasesToday': 0,
             'ReadCapacityUnits': 5,
             'WriteCapacityUnits': 5
         },
         'TableName': 'myTableName',
         'TableSizeBytes': 0,
         'TableStatus': 'DELETING'
     }
     table = Table.from_response(response)
     self.assertEqual(table.status, 'DELETING')
Example #3
0
 def test_describe_during_delete(self):
     """Describing a table during a delete operation should not crash"""
     response = {
         "ItemCount": 0,
         "ProvisionedThroughput": {
             "NumberOfDecreasesToday": 0,
             "ReadCapacityUnits": 5,
             "WriteCapacityUnits": 5,
         },
         "TableName": "myTableName",
         "TableSizeBytes": 0,
         "TableStatus": "DELETING",
     }
     table = Table.from_response(response)
     self.assertEqual(table.status, "DELETING")