

def test_bulk_creates_children_logged_in_read_contributor(self):
    self.project.add_contributor(self.user_two, permissions=[permissions.READ], auth=Auth(self.user), save=True)
    res = self.app.post_json_api(self.url, {
        'data': [self.child, self.child_two],
    }, auth=self.user_two.auth, expect_errors=True, bulk=True)
    assert_equal(res.status_code, 403)
    self.project.reload()
    assert_equal(len(self.project.nodes), 0)

dataset/ETHPy150Open CenterForOpenScience/osf.io/api_tests/nodes/views/test_node_children_list.py TestNodeChildrenBulkCreate.test_bulk_creates_children_logged_in_read_contributor/original