

def test_filtering_by_category(self):
    url = '/{}registrations/?filter[category]=hypothesis'.format(API_BASE)
    res = self.app.get(url, auth=self.user_one.auth)
    registration_json = res.json['data']
    ids = [each['id'] for each in registration_json]
    assert_in(self.project_one_reg._id, ids)
    assert_not_in(self.project_two_reg._id, registration_json)
    assert_not_in(self.project_three_reg._id, ids)
    assert_not_in(self.private_project_user_one_reg._id, ids)
    assert_not_in(self.private_project_user_two_reg._id, ids)

dataset/ETHPy150Open CenterForOpenScience/osf.io/api_tests/registrations/views/test_registration_list.py TestRegistrationFiltering.test_filtering_by_category/VarMisuse@79/116 `ids`->`registration_json`