'Try uploading a CSV file which does not have the exact four columns of data'

def test_insufficient_data(self):

    csv_content = 'test_student@example.com,test_student_1\n'
    uploaded_file = SimpleUploadedFile('temp.csv', csv_content)
    response = self.client.post(self.url, {'students_list': uploaded_file})
    self.assertEqual(response.status_code, 200)
    data = json.loads(response.content)
    self.assertEquals(len(data['row_errors']), 0)
    self.assertEquals(len(data['warnings']), 0)
    self.assertEquals(len(data['general_errors']), 1)
    self.assertEquals(data['general_errors'][0]['response'], 'Data    in    row    #1    must    have    exactly    four    columns:    email,    username,    full    name,    and    country')
    manual_enrollments = ManualEnrollmentAudit.objects.all()
    self.assertEqual(manual_enrollments.count(), 0)
