Changeset 12210 for main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests
- Timestamp:
- 13 Dec 2014, 08:58:43 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_export.py
r12146 r12210 161 161 self.assertEqual( 162 162 result, 163 'class_name,document_id,history, last_transition_date,state,title,user_id\r\n'164 'CustomerSampleDocument,d101,[],,, ,\r\n'163 'class_name,document_id,history,state,title,user_id\r\n' 164 'CustomerSampleDocument,d101,[],,,\r\n' 165 165 ) 166 166 return … … 175 175 result = open(self.outfile, 'rb').read() 176 176 self.assertTrue( 177 'class_name,document_id,history, last_transition_date,state,title,user_id\r\n'177 'class_name,document_id,history,state,title,user_id\r\n' 178 178 in result 179 179 ) 180 180 self.assertMatches( 181 181 '...CustomerSampleDocument,d101,[u\'2014-11-25 06:57:24 UTC - ' 182 'Document created by system\'], 2014-11-25 06:57:24.990308#,'182 'Document created by system\'],' 183 183 'verified,My Document,A111111...', 184 184 result … … 194 194 result = open(self.outfile, 'rb').read() 195 195 self.assertTrue( 196 'class_name,document_id,history, last_transition_date,state,title,user_id\r\n'196 'class_name,document_id,history,state,title,user_id\r\n' 197 197 in result) 198 198 self.assertMatches( 199 199 '...CustomerSampleDocument,d101,[u\'2014-11-25 06:57:24 UTC - ' 200 'Document created by system\'], 2014-11-25 06:57:24.990308#,'200 'Document created by system\'],' 201 201 'verified,My Document,A111111...', 202 202 result … … 212 212 result = open(self.outfile, 'rb').read() 213 213 self.assertTrue( 214 'class_name,document_id,history, last_transition_date,state,title,user_id\r\n'214 'class_name,document_id,history,state,title,user_id\r\n' 215 215 in result) 216 216 self.assertMatches( 217 217 '...CustomerSampleDocument,d101,[u\'2014-11-25 06:57:24 UTC - ' 218 'Document created by system\'], 2014-11-25 06:57:24.990308#,'218 'Document created by system\'],' 219 219 'verified,My Document,A111111...', 220 220 result … … 254 254 result, 255 255 'class_name,contract_category,contract_id,document_object,' 256 'history,last_product_id, last_transition_date,'256 'history,last_product_id,' 257 257 'product_object,state,title\r\n' 258 258 259 'SampleContract,sample,c101,,[],,,, ,\r\n'259 'SampleContract,sample,c101,,[],,,,\r\n' 260 260 ) 261 261 return … … 270 270 self.assertMatches( 271 271 'class_name,contract_category,contract_id,document_object,' 272 'history,last_product_id, last_transition_date,'272 'history,last_product_id,' 273 273 'product_object,state,title\r\n' 274 274 275 275 'SampleContract,sample,c101,d101,[u\'2014-12-04 12:10:46 UTC - ' 276 276 'Contract record created by system\'],,' 277 ' 2014-12-04 12:10:46.333445#,SAM,created,My Contract\r\n',277 'SAM,created,My Contract\r\n', 278 278 result 279 279 ) … … 289 289 self.assertMatches( 290 290 'class_name,contract_category,contract_id,document_object,' 291 'history,last_product_id, last_transition_date,'291 'history,last_product_id,' 292 292 'product_object,state,title\r\n' 293 293 294 294 'SampleContract,sample,c101,d101,[u\'2014-12-04 12:10:46 UTC - ' 295 295 'Contract record created by system\'],,' 296 ' 2014-12-04 12:10:46.333445#,SAM,created,My Contract\r\n',296 'SAM,created,My Contract\r\n', 297 297 result 298 298 ) … … 308 308 self.assertMatches( 309 309 'class_name,contract_category,contract_id,document_object,' 310 'history,last_product_id, last_transition_date,'310 'history,last_product_id,' 311 311 'product_object,state,title\r\n' 312 312 313 313 'SampleContract,sample,c101,d101,[u\'2014-12-04 12:10:46 UTC - ' 314 314 'Contract record created by system\'],,' 315 ' 2014-12-04 12:10:46.333445#,SAM,created,My Contract\r\n',316 result 317 ) 318 return 319 315 'SAM,created,My Contract\r\n', 316 result 317 ) 318 return 319
Note: See TracChangeset for help on using the changeset viewer.