Exemplo n.º 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')
Exemplo n.º 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')
Exemplo n.º 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")