def test_create_bulk(self):
        self.dataset.import_data(self.user, self.upload, 0)

        new_data = { 'objects': [
            {
                'data': ['5', 'A', 'B', 'C']
            },
            {
                'data': ['6', 'D', 'E', 'F']
            }
        ]}

        response = self.client.put('/api/1.0/dataset/%s/data/' % self.dataset.slug, content_type='application/json', data=json.dumps(new_data), **self.auth_headers)

        self.assertEqual(response.status_code, 202)
        body = json.loads(response.content)
        self.assertEqual(len(body['objects']), 2)

        # Refresh
        self.dataset = Dataset.objects.get(id=self.dataset.id)

        self.assertEqual(self.dataset.row_count, 6)
dataset/ETHPy150Open pandaproject/panda/panda/tests/test_api_data.py/TestAPIData.test_create_bulk/original