

def test_return_public_node_children_list_logged_in(self):
    res = self.app.get(self.public_project_url, auth=self.user_two.auth)
    assert_equal(res.status_code, 200)
    assert_equal(res.content_type, 'application/vnd.api+json')
    assert_equal(len(res.json['data']), 1)
    assert_equal(res.json['data'][0]['id'], self.public_component._id)

dataset/ETHPy150Open CenterForOpenScience/osf.io/api_tests/nodes/views/test_node_children_list.py TestNodeChildrenList.test_return_public_node_children_list_logged_in/original