def METHOD_NAME(client, package):
    response = client.get('/packages/search/json/?repository=core')
    assert response.status_code == 200
    data = response.json()
    assert len(data['results']) == 5
    assert set([r['pkgname'] for r in data['results']]) == {"coreutils", "glibc", "linux", "pacman", "systemd"}