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')
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")