- Timestamp:
- 2 Jan 2015, 10:24:02 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_batching.py
r12364 r12366 492 492 fail_file = open(fail_file).read() 493 493 self.assertEqual(fail_file, 494 'reg_number,contract_id,class_name,product_object, document_object,product_options,--ERRORS--\r\n'495 '2,c5,SampleContract,SAM, DOC1,[],This object already exists. Skipping.\r\n'496 '3,c6,SampleContract,SAM, NONEXISTENT,[],document_object: Invalid value\r\n'497 '3,c7,SampleContract,NONEXISTENT, DOC1,[],product_object: Invalid value\r\n'494 'reg_number,contract_id,class_name,product_object,tc_dict,document_object,product_options,--ERRORS--\r\n' 495 '2,c5,SampleContract,SAM,{},DOC1,[],This object already exists. Skipping.\r\n' 496 '3,c6,SampleContract,SAM,{},NONEXISTENT,[],document_object: Invalid value\r\n' 497 '3,c7,SampleContract,NONEXISTENT,{},DOC1,[],product_object: Invalid value\r\n' 498 498 ) 499 499 contract = self.processor.getEntry(dict(reg_number='1', … … 506 506 self.assertEqual(contract.product_options[0].currency, 'USD') 507 507 self.assertEqual(contract.contract_id, 'c3') 508 self.assertEqual(contract.tc_dict, u"{'en':'Hello World'}") 508 509 contract = self.processor.getEntry(dict(reg_number='3', 509 510 contract_id='c5'), self.app) … … 516 517 self.assertTrue( 517 518 'INFO - system - Customer Sample Contract Processor - sample_contract_data - ' 518 'X666666 - %s - updated: product_object=SAM, document_object=DOC1, '519 'X666666 - %s - updated: product_object=SAM, tc_dict={}, document_object=DOC1, ' 519 520 'product_options=[]' % conid 520 521 in logcontent)
Note: See TracChangeset for help on using the changeset viewer.