Changeset 12500 for main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests
- Timestamp:
- 20 Jan 2015, 17:31:11 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12462 r12500 1215 1215 self.assertEqual(contract.state, 'approved') 1216 1216 1217 # Even in state approved the official use data can be edited 1218 self.browser.open(self.contracts_path + '/%s/index' % conid) 1219 self.browser.getLink("Manage official data").click() 1220 self.browser.getControl(name="form.comment").value = u'Nice place' 1221 self.browser.getControl("Save").click() 1222 self.assertEqual(contract.comment, 'Nice place') 1223 self.assertTrue('Form has been saved.' in self.browser.contents) 1224 1217 1225 # Contracts can be removed 1218 1226 self.browser.getLink("Contracts").click() -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_export.py
r12363 r12500 255 255 self.assertEqual( 256 256 result, 257 'class_name,co ntract_category,contract_id,document_object,'257 'class_name,comment,contract_category,contract_id,document_object,' 258 258 'history,last_product_id,' 259 259 'product_object,product_options,state,tc_dict,title,user_id\r\n' 260 260 261 'SampleContract, sample,CON1,,[],,,[],,{},,\r\n'261 'SampleContract,,sample,CON1,,[],,,[],,{},,\r\n' 262 262 ) 263 263 return … … 271 271 result = open(self.outfile, 'rb').read() 272 272 self.assertMatches( 273 'class_name,co ntract_category,contract_id,document_object,'273 'class_name,comment,contract_category,contract_id,document_object,' 274 274 'history,last_product_id,' 275 275 'product_object,product_options,state,tc_dict,title,user_id\r\n' 276 276 277 'SampleContract, sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - '277 'SampleContract,,sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - ' 278 278 'Contract created by system\'],,' 279 279 'SAM,"[(u\'Base Fee\', u\'800.6\', u\'USD\')]",' … … 291 291 result = open(self.outfile, 'rb').read() 292 292 self.assertMatches( 293 'class_name,co ntract_category,contract_id,document_object,'293 'class_name,comment,contract_category,contract_id,document_object,' 294 294 'history,last_product_id,' 295 295 'product_object,product_options,state,tc_dict,title,user_id\r\n' 296 296 297 'SampleContract, sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - '297 'SampleContract,,sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - ' 298 298 'Contract created by system\'],,' 299 299 'SAM,"[(u\'Base Fee\', u\'800.6\', u\'USD\')]",' … … 311 311 result = open(self.outfile, 'rb').read() 312 312 self.assertMatches( 313 'class_name,co ntract_category,contract_id,document_object,'313 'class_name,comment,contract_category,contract_id,document_object,' 314 314 'history,last_product_id,' 315 315 'product_object,product_options,state,tc_dict,title,user_id\r\n' 316 316 317 'SampleContract, sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - '317 'SampleContract,,sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - ' 318 318 'Contract created by system\'],,' 319 319 'SAM,"[(u\'Base Fee\', u\'800.6\', u\'USD\')]",'
Note: See TracChangeset for help on using the changeset viewer.