def test_node_contributor_bulk_create_contributor_exists(self):
        self.public_project.add_contributor(self.user_two, permissions=[permissions.READ], visible=True, save=True)
        res = self.app.post_json_api(self.public_url, {'data': [self.payload_two, self.payload_one]},
                                     auth=self.user.auth, expect_errors=True, bulk=True)
        assert_equal(res.status_code, 400)
        assert "is already a contributor" in res.json['errors'][0]['detail']

        res = self.app.get(self.public_url, auth=self.user.auth)
        assert_equal(len(res.json['data']), 2)
dataset/ETHPy150Open CenterForOpenScience/osf.io/api_tests/nodes/views/test_node_contributors_list.py/TestNodeContributorBulkCreate.test_node_contributor_bulk_create_contributor_exists/original