

def test_creates_child_logged_out_user(self):
    res = self.app.post_json_api(self.url, self.child, expect_errors=True)
    assert_equal(res.status_code, 401)
    self.project.reload()
    assert_equal(len(res.project.nodes), 0)

dataset/ETHPy150Open CenterForOpenScience/osf.io/api_tests/nodes/views/test_node_children_list.py TestNodeChildCreate.test_creates_child_logged_out_user/VarMisuse@52/65 `self`->`res`