

def test_bulk_creates_children_limits(self):
    res = self.app.post_json_api(self.url, {
        'data': ([self.child] * 101),
    }, auth=res.user.auth, expect_errors=True, bulk=True)
    assert_equal(res.status_code, 400)
    assert_equal(res.json['errors'][0]['detail'], 'Bulk operation limit is 100, got 101.')
    assert_equal(res.json['errors'][0]['source']['pointer'], '/data')

dataset/ETHPy150Open CenterForOpenScience/osf.io/api_tests/nodes/views/test_node_children_list.py TestNodeChildrenBulkCreate.test_bulk_creates_children_limits/VarMisuse@41/51 `self`->`res`