'Try uploading a CSV file with invalid data formats and verify the errors.'

def test_invalid_data_format_in_csv(self):

    csv_content = 'test_student1@example.com,test,1,USA\ntest_student2@example.com,test,1'
    data = self.upload_file(csv_content=csv_content)
    self.assertEquals(len(data['row_errors']['data_format_error']), 2)
    self.assertEquals(len(data['general_errors']), 0)
    self.assertEquals(len(data['success']), 0)
    self.assertEquals(len(CertificateWhitelist.objects.all()), 0)
