

def put_item(self):
    name = self.body['TableName']
    item = self.body['Item']
    result = dynamodb_backend.put_item(name, item)
    if result:
        item_dict = result.to_json()
        item_dict['ConsumedCapacityUnits'] = 1
        return dynamo_json_dump(item_dict)
    else:
        er = 'com.amazonaws.dynamodb.v20111205#ResourceNotFoundException'
        return self.error(er)

dataset/ETHPy150Open spulec/moto/moto/dynamodb/responses.py DynamoHandler.put_item/original