self.assertEqual(self.auto_enroll_section.first_notification_message(section_type=self.auto_enroll_section.NOTIFICATION_ERROR),"Could not read uploaded file.")
self.assertEqual(self.auto_enroll_section.first_notification_message(section_type=self.auto_enroll_section.NOTIFICATION_ERROR),"Make sure that the file you upload is in CSV format with no extraneous characters or rows.")
@@ -363,7 +363,7 @@ class TestInstructorAPIBulkAccountCreationAndEnrollment(ModuleStoreTestCase, Log
# test the log for email that's send to new created user.
info_log.assert_called_with("user already exists with username '{username}' and email '{email}'".format(username='test_student_1',email='test_student@example.com'))
deftest_bad_file_upload_type(self):
deftest_file_upload_type_not_csv(self):
"""
Try uploading some non-CSV file and verify that it is rejected
"""
...
...
@@ -372,6 +372,17 @@ class TestInstructorAPIBulkAccountCreationAndEnrollment(ModuleStoreTestCase, Log