

def test_get_some_registrations_with_substring_not_logged_in(self):
    url = '/{}registrations/?filter[title]=One'.format(API_BASE)
    res = self.app.get(url)
    reg_json = res.json['data']
    ids = [each['id'] for each in reg_json]
    assert_in(self.project_one_reg._id, ids)
    assert_not_in(self.project_two_reg._id, ids)
    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)
    assert_not_in(self.folder._id, ids)
    assert_not_in(self.bookmark_collection._id, ids)

dataset/ETHPy150Open CenterForOpenScience/osf.io/api_tests/registrations/views/test_registration_list.py TestRegistrationFiltering.test_get_some_registrations_with_substring_not_logged_in/original