def METHOD_NAME():
    """ correct error is returned when updating user to same org """
    # grab all users to find one to update
    res = requests.get(
        f'{env.AWG_BASE_URL}/api/users',
        headers=utils.BASE_HEADERS
    )
    assert res.status_code == 200
    all_users = json.loads(res.content.decode())['users']
    assert len(all_users) > 0
    test_user = all_users[0]
    # can only use the org shortname in the URL
    org_res = requests.get(
        f'{env.AWG_BASE_URL}/api/org/{test_user["org_UUID"]}',
        headers=utils.BASE_HEADERS
    )
    assert org_res.status_code == 200
    org = json.loads(org_res.content.decode())
    # random string for test name
    test_name = ''.join(random.choices(string.ascii_letters, k=16))
    res = requests.put(
        f'{env.AWG_BASE_URL}/api/org/{org["short_name"]}/user/{test_user["username"]}',
        headers=utils.BASE_HEADERS,
        params={
            'name.first': test_name
        }
    )
    assert res.status_code == 200
    res = requests.get(
        f'{env.AWG_BASE_URL}/api/org/{org["short_name"]}/user/{test_user["username"]}',
        headers=utils.BASE_HEADERS
    )
    assert json.loads(res.content.decode())['name']['first'] == test_name
    # put the name back to what it was because tests don't reset the data
    res = requests.put(
        f'{env.AWG_BASE_URL}/api/org/{org["short_name"]}/user/{test_user["username"]}',
        headers=utils.BASE_HEADERS,
        params={
            'name.first': test_user['name']['first']
        }
    )
    assert res.status_code == 200