- Timestamp:
- 18 Dec 2014, 12:58:12 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_export.py
r12221 r12256 156 156 # we can export a nearly empty document 157 157 document = CustomerSampleDocument() 158 document.document_id = u'DOC1' 158 159 exporter = CustomerDocumentExporter() 159 160 exporter.export([document], self.outfile) … … 162 163 result, 163 164 'class_name,document_id,history,state,title,user_id\r\n' 164 'CustomerSampleDocument, d101,[],,,\r\n'165 'CustomerSampleDocument,DOC1,[],,,\r\n' 165 166 ) 166 167 return … … 170 171 # set values we can expect in export file 171 172 self.setup_customer(self.customer) 172 document = self.customer['documents'][' d101']173 document = self.customer['documents']['DOC1'] 173 174 exporter = CustomerDocumentExporter() 174 175 exporter.export([document], self.outfile) … … 179 180 ) 180 181 self.assertMatches( 181 '...CustomerSampleDocument, d101,[u\'2014-11-25 06:57:24 UTC - '182 '...CustomerSampleDocument,DOC1,[u\'2014-11-25 06:57:24 UTC - ' 182 183 'Document created by system\'],' 183 184 'verified,My Document,A111111...', … … 197 198 in result) 198 199 self.assertMatches( 199 '...CustomerSampleDocument, d101,[u\'2014-11-25 06:57:24 UTC - '200 '...CustomerSampleDocument,DOC1,[u\'2014-11-25 06:57:24 UTC - ' 200 201 'Document created by system\'],' 201 202 'verified,My Document,A111111...', … … 215 216 in result) 216 217 self.assertMatches( 217 '...CustomerSampleDocument, d101,[u\'2014-11-25 06:57:24 UTC - '218 '...CustomerSampleDocument,DOC1,[u\'2014-11-25 06:57:24 UTC - ' 218 219 'Document created by system\'],' 219 220 'verified,My Document,A111111...', … … 273 274 'product_object,state,title\r\n' 274 275 275 'SampleContract,sample,c101, d101,[u\'2014-12-04 12:10:46 UTC - '276 'SampleContract,sample,c101,DOC1,[u\'2014-12-04 12:10:46 UTC - ' 276 277 'Contract created by system\'],,' 277 278 'SAM,created,My Contract\r\n', … … 292 293 'product_object,state,title\r\n' 293 294 294 'SampleContract,sample,c101, d101,[u\'2014-12-04 12:10:46 UTC - '295 'SampleContract,sample,c101,DOC1,[u\'2014-12-04 12:10:46 UTC - ' 295 296 'Contract created by system\'],,' 296 297 'SAM,created,My Contract\r\n', … … 311 312 'product_object,state,title\r\n' 312 313 313 'SampleContract,sample,c101, d101,[u\'2014-12-04 12:10:46 UTC - '314 'SampleContract,sample,c101,DOC1,[u\'2014-12-04 12:10:46 UTC - ' 314 315 'Contract created by system\'],,' 315 316 'SAM,created,My Contract\r\n',
Note: See TracChangeset for help on using the changeset viewer.