def METHOD_NAME(client, tables):
    files = [
        {
            'filename': 'foo.txt',
            'size': 123,
            'url': 'https://mybucket.s3.us-west-2.amazonaws.com/prefix/foo.txt',
            's3': {
                'bucket': 'mybucket',
                'key': 'prefix/foo.txt'
            },
        },
        {
            'filename': 'bar.png',
            'size': 0,
            'url': 'https://mybucket.s3.us-west-2.amazonaws.com/prefix/bar.png',
            's3': {
                'bucket': 'mybucket',
                'key': 'prefix/bar.png'
            },
        },
    ]
    browse_images = ['https://mybucket.s3.us-west-2.amazonaws.com/prefix/browse/foo.png']
    thumbnail_images = []
    items = [
        make_db_record('0ddaeb98-7636-494d-9496-03ea4a7df266', user_id='user_with_jobs'),
        make_db_record(job_id='27836b79-e5b2-4d8f-932f-659724ea02c3', user_id='user_with_jobs', files=files,
                       browse_images=browse_images, thumbnail_images=thumbnail_images)
    ]
    for item in items:
        tables.jobs_table.put_item(Item=item)
    login(client, 'user_with_jobs')
    response = client.get(JOBS_URI)
    assert response.status_code == HTTPStatus.OK
    assert 'jobs' in response.json
    assert list_have_same_elements(response.json['jobs'], items)
    login(client, 'user_without_jobs')
    response = client.get(JOBS_URI)
    assert response.status_code == HTTPStatus.OK
    assert response.json == {'jobs': []}