

def test_return_registrations_logged_in_non_contributor(self):
    res = self.app.get(self.url, auth=self.user_two.auth)
    assert_equal(len(res.json['data']), 1)
    assert_equal(res.status_code, 200)
    registered_from = urlparse(res.json['data'][0]['relationships']['registered_from']['links']['related']['href']).path
    assert_equal(res.content_type, 'application/vnd.api+json')
    assert_equal(registered_from, '/{}nodes/{}/'.format(API_BASE, self.public_project._id))

dataset/ETHPy150Open CenterForOpenScience/osf.io/api_tests/registrations/views/test_registration_list.py TestRegistrationList.test_return_registrations_logged_in_non_contributor/original