- Timestamp:
- 19 Mar 2015, 16:50:54 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/ikobacustom.pcn/trunk/src/ikobacustom/pcn/customers/tests/test_browser.py
r12794 r12797 63 63 customer.sex = u'f' 64 64 customer.email = u'aa@aa.aa' 65 customer.res_address = u'My address' 65 66 customer.date_of_birth = datetime.date(1981, 2, 4) 66 67 IWorkflowState(customer).setState('started') … … 95 96 self.assertEqual(result, 96 97 'customer_id,date_of_birth,email,firstname,lastname,middlename,phone,' 97 'reg_number, sex,suspended,suspended_comment,password,state,history\r\n'98 'K1000000,1981-02-04#,aa@aa.aa,Beate,Mueller,,,123, f,0,,,started,[]\r\n')98 'reg_number,res_address,sex,suspended,suspended_comment,password,state,history\r\n' 99 'K1000000,1981-02-04#,aa@aa.aa,Beate,Mueller,,,123,My address,f,0,,,started,[]\r\n') 99 100 # We can reimport the file ... 100 101 processor = PCNCustomerProcessor() … … 102 103 self.outfile, 103 104 ['customer_id','date_of_birth','email','firstname','lastname','middlename','phone', 104 'reg_number',' sex','suspended','suspended_comment','password','state'],105 'reg_number','res_address','sex','suspended','suspended_comment','password','state'], 105 106 mode='create') 106 107 num, num_fail, finished_path, failed_path = result … … 111 112 self.outfile, 112 113 ['customer_id','date_of_birth','email','firstname','lastname','middlename','phone', 113 'reg_number',' sex','suspended','suspended_comment','password','state'],114 'reg_number','res_address','sex','suspended','suspended_comment','password','state'], 114 115 mode='create') 115 116 num_succ, num_fail, finished_path, failed_path = result … … 120 121 self.outfile, 121 122 ['customer_id','date_of_birth','xx_email','firstname','lastname','middlename','phone', 122 'xx_reg_number',' sex','suspended','suspended_comment','password','state'],123 'xx_reg_number','res_address','sex','suspended','suspended_comment','password','state'], 123 124 mode='update') 124 125 num_succ, num_fail, finished_path, failed_path = result … … 225 226 'categories_practice,class_name,comment,contract_category,contract_id,' 226 227 'fee_based,history,last_product_id,lga,product_object,' 227 'product_options, res_address,state,state_of_origin,superintendent,'228 'product_options,state,state_of_origin,superintendent,' 228 229 'tc_dict,title,user_id,valid_from,valid_to,work_address,work_email,work_phone,' 229 230 'year_qualification\r\n' 230 231 '[],RONContract,,ron,%s,0,' 231 232 '[u\'2015-01-18 16:40:01 WAT - License created by system\'],,,,' 232 '[], ,created,,,{\'en\': u\'Hello World\'},,K1000000,,,,,,\r\n'233 '[],created,,,{\'en\': u\'Hello World\'},,K1000000,,,,,,\r\n' 233 234 % self.contract1.contract_id) 234 235 # We can reimport the file if we change the header … … 286 287 'last_product_id,official_in_state,other_directors,' 287 288 'pharmacists_directors,premises_address,premises_certificate,' 288 'product_object,product_options,recommended, res_address,'289 'product_object,product_options,recommended,' 289 290 'state,superintendent,tc_dict,title,user_id,valid_from,valid_to,' 290 291 'work_address\r\n' … … 292 293 '[],ROPContract,rop,%s,,0,' 293 294 '[u\'2015-01-20 18:51:03 WAT - License created by system\']' 294 ',,,,,,,,,,[],, ,created,,{\'en\': u\'Hello World\'},,K1000000,,,\r\n'295 ',,,,,,,,,,[],,created,,{\'en\': u\'Hello World\'},,K1000000,,,\r\n' 295 296 % self.contract2.contract_id) 296 297 # We can reimport the file if we change the header … … 357 358 self.browser.getLink("Edit").click() 358 359 self.browser.getControl(name="form.email").value = 'new_email@aa.ng' 360 self.browser.getControl(name="form.res_address").value = 'My address' 359 361 self.browser.getControl("Save", index=0).click() 360 362 self.assertMatches('...Form has been saved...',
Note: See TracChangeset for help on using the changeset viewer.