Index: /main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests.py
===================================================================
--- /main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests.py	(revision 8587)
+++ /main/waeup.aaue/trunk/src/waeup/aaue/applicants/tests.py	(revision 8588)
@@ -274,13 +274,14 @@
         result = processor.doImport(
             self.outfile,
-            ['ignore1','application_date','ignore2','course1','course2',''
-            'course_admitted','date_of_birth','ignore3','email','emp2_end',''
-            'emp2_position','emp2_reason','emp2_start','emp_end','emp_position',''
-            'emp_reason','emp_start','employer','employer2','firstname','ignore4',''
-            'hq_degree','hq_disc','hq_matric_no','hq_school','hq_session','hq_type',''
-            'jamb_score','jamb_subjects','lastname','lga','locked','middlename',''
-            'nationality','notice','nysc_lga',''
-            'nysc_year','password','perm_address','phone','pp_school','presently_inst',''
-            'reg_number','screening_date','screening_score','screening_venue','sex',''
+            ['ignore_applicant_id','application_date','ignore_application_number',
+            'course1','course2',
+            'course_admitted','date_of_birth','ignore3','email','emp2_end',
+            'emp2_position','emp2_reason','emp2_start','emp_end','emp_position',
+            'emp_reason','emp_start','employer','employer2','firstname','ignore4',
+            'hq_degree','hq_disc','hq_matric_no','hq_school','hq_session','hq_type',
+            'jamb_score','jamb_subjects','lastname','lga','locked','middlename',
+            'nationality','notice','nysc_lga',
+            'nysc_year','password','perm_address','phone','pp_school','presently_inst',
+            'reg_number','screening_date','screening_score','screening_venue','sex',
             'state','student_id','container_code'],
             mode='create')
@@ -288,3 +289,26 @@
         self.assertEqual(num_succ,1)
         self.assertEqual(num_fail,0)
-        return
+        # Now we ignore also the container_code and import the same file 
+        # in update mode which means that ICustomApplicantUpdateByRegNo 
+        # is used for field conversion. applicant_id must be ignored
+        # too since the previous import has notified the applicants_catalog
+        # so that the portal 'knows' that reg_number is in use.
+        processor = CustomApplicantProcessor()
+        result = processor.doImport(
+            self.outfile,
+            ['ignore_applicant_id','application_date','ignore_application_number',
+            'course1','course2',
+            'course_admitted','date_of_birth','ignore3','email','emp2_end',
+            'emp2_position','emp2_reason','emp2_start','emp_end','emp_position',
+            'emp_reason','emp_start','employer','employer2','firstname','ignore4',
+            'hq_degree','hq_disc','hq_matric_no','hq_school','hq_session','hq_type',
+            'jamb_score','jamb_subjects','lastname','lga','locked','middlename',
+            'nationality','notice','nysc_lga',
+            'nysc_year','password','perm_address','phone','pp_school','presently_inst',
+            'reg_number','screening_date','screening_score','screening_venue','sex',
+            'state','student_id','ignore_container_code'],
+            mode='update')
+        num_succ, num_fail, finished_path, failed_path = result
+        self.assertEqual(num_succ,1)
+        self.assertEqual(num_fail,0)
+        return
