

def test_node_children_list_does_not_include_node_links(self):
    pointed_to = ProjectFactory(is_public=True)
    self.public_project.add_pointer(pointed_to, auth=Auth(self.public_project.creator))
    res = self.app.get(self.public_project_url, auth=self.user.auth)
    ids = [node['id'] for node in res.json['data']]
    assert_in(self.public_component._id, ids)
    assert_equal(len(ids), len([e for e in self.public_project.nodes if e.primary]))
    assert_not_in(pointed_to._id, ids)

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