def test_update():
    app_id = 1
    attributes = {'1': 1, '2': 3, '5': '8'}

    client, check_assertions = check_client_method()
    result = client.Item.update(app_id, attributes)
    check_assertions(result,
                     'PUT',
                     '/item/%s' % app_id,
                     json.dumps(attributes),
                     {'content-type': 'application/json'})

    client, check_assertions = check_client_method()
    result = client.Item.update(app_id, attributes, silent=True)
    check_assertions(result,
                     'PUT',
                     '/item/%s?silent=true' % app_id,
                     json.dumps(attributes),
                     {'content-type': 'application/json'})
dataset/ETHPy150Open podio/podio-py/tests/test_areas_item.py/test_update/original