'Make an authenticated request to the bulk enrollment API.'

def request_bulk_enroll(self, data=None, use_json=False, **extra):

    content_type = None
    if use_json:
        content_type = 'application/json'
        data = json.dumps(data)
    request = self.request_factory.post(self.url, data=data, content_type=content_type, **extra)
    force_authenticate(request, user=self.staff)
    response = self.view(request)
    response.render()
    return response
