Changeset 12538 for main/ikobacustom.pcn/trunk
- Timestamp:
- 1 Feb 2015, 07:42:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests/test_browser.py
r12536 r12538 62 62 customer.reg_number = u'123' 63 63 customer.sex = u'f' 64 customer.email = u'aa@aa.aa' 64 65 customer.date_of_birth = datetime.date(1981, 2, 4) 65 66 IWorkflowState(customer).setState('started') … … 95 96 'customer_id,date_of_birth,email,firstname,lastname,middlename,phone,' 96 97 'reg_number,sex,suspended,suspended_comment,password,state,history\r\n' 97 'K1000000,1981-02-04#, ,Beate,Mueller,,,123,f,0,,,started,[]\r\n')98 'K1000000,1981-02-04#,aa@aa.aa,Beate,Mueller,,,123,f,0,,,started,[]\r\n') 98 99 # We can reimport the file ... 99 100 processor = PCNCustomerProcessor() … … 114 115 num_succ, num_fail, finished_path, failed_path = result 115 116 self.assertEqual(num_fail,0) 116 # We can import the same file in update mode if we ignore the reg_number. 117 result = processor.doImport( 118 self.outfile, 119 ['customer_id','date_of_birth','email','firstname','lastname','middlename','phone', 117 # We can import the same file in update mode if we ignore 118 # the reg_number and email address 119 result = processor.doImport( 120 self.outfile, 121 ['customer_id','date_of_birth','xx_email','firstname','lastname','middlename','phone', 120 122 'xx_reg_number','sex','suspended','suspended_comment','password','state'], 121 123 mode='update')
Note: See TracChangeset for help on using the changeset viewer.