Ignore:
Timestamp:
2 Jan 2015, 10:24:02 (10 years ago)
Author:
Henrik Bettermann
Message:

Extend test.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_batching.py

    r12364 r12366  
    492492        fail_file = open(fail_file).read()
    493493        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'
    498498            )
    499499        contract = self.processor.getEntry(dict(reg_number='1',
     
    506506        self.assertEqual(contract.product_options[0].currency, 'USD')
    507507        self.assertEqual(contract.contract_id, 'c3')
     508        self.assertEqual(contract.tc_dict, u"{'en':'Hello World'}")
    508509        contract = self.processor.getEntry(dict(reg_number='3',
    509510            contract_id='c5'), self.app)
     
    516517        self.assertTrue(
    517518            '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, '
    519520            'product_options=[]' % conid
    520521            in logcontent)
Note: See TracChangeset for help on using the changeset viewer.