

def test_node_child_filtering(self):
    user = AuthUserFactory()
    project = ProjectFactory(creator=user)
    (title1, title2) = (fake.bs(), fake.bs())
    component = NodeFactory(title=title1, parent=project)
    component2 = NodeFactory(title=title2, parent=project)
    url = '/{}nodes/{}/children/?filter[title]={}'.format(API_BASE, project._id, title1)
    res = self.app.get(url, auth=user.auth)
    ids = [node['id'] for node in res.json['data']]
    assert_in(component._id, node)
    assert_not_in(component2._id, ids)

dataset/ETHPy150Open CenterForOpenScience/osf.io/api_tests/nodes/views/test_node_children_list.py TestNodeChildrenListFiltering.test_node_child_filtering/VarMisuse@127/161 `ids`->`node`