Changeset 12663 for main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests
- Timestamp:
- 5 Mar 2015, 07:28:31 (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
r12634 r12663 1417 1417 # The form is also saved. 1418 1418 self.browser.getLink("Edit").click() 1419 self.browser.getControl(" Apply").click()1419 self.browser.getControl("Proceed to checkout").click() 1420 1420 self.assertTrue('confirm your acceptance of these by ticking' in self.browser.contents) 1421 1421 self.assertEqual(contract.state, 'created') 1422 1422 self.browser.getControl(name="confirm_tc").value = True 1423 self.browser.getControl("Apply").click() 1424 self.assertEqual(contract.state, 'submitted') 1425 self.assertTrue('Contract State: submitted for approval' in self.browser.contents) 1423 self.browser.getControl("Proceed to checkout").click() 1424 self.assertEqual(contract.state, 'created') 1425 self.browser.getControl("Select payment method").click() 1426 self.assertEqual(contract.state, 'awaiting') 1426 1427 # Customer can't edit the contract once it has been submitted 1427 1428 self.browser.open(self.contracts_path + '/%s/edit' % conid) -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_export.py
r12633 r12663 256 256 result, 257 257 'class_name,comment,contract_category,contract_id,document_object,' 258 ' history,last_product_id,'259 'product_object,product_options,state,tc_dict,title, user_id,'260 ' valid_from,valid_to\r\n'261 262 'SampleContract,,sample,CON1,, [],,,[],,{},,,,\r\n'258 'fee_based,history,last_product_id,' 259 'product_object,product_options,state,tc_dict,title,' 260 'user_id,valid_from,valid_to\r\n' 261 262 'SampleContract,,sample,CON1,,0,[],,,[],,{},,,,\r\n' 263 263 ) 264 264 return … … 273 273 self.assertMatches( 274 274 'class_name,comment,contract_category,contract_id,document_object,' 275 ' history,last_product_id,'276 'product_object,product_options,state,tc_dict,title, user_id,'277 ' valid_from,valid_to\r\n'278 279 'SampleContract,,sample,CON1,DOC1, [u\'2014-12-04 12:10:46 UTC - '275 'fee_based,history,last_product_id,' 276 'product_object,product_options,state,tc_dict,title,' 277 'user_id,valid_from,valid_to\r\n' 278 279 'SampleContract,,sample,CON1,DOC1,1,[u\'2014-12-04 12:10:46 UTC - ' 280 280 'Contract created by system\'],,' 281 281 'SAM,"[(u\'Base Fee\', u\'800.6\', u\'USD\')]",' … … 295 295 self.assertMatches( 296 296 'class_name,comment,contract_category,contract_id,document_object,' 297 ' history,last_product_id,'298 'product_object,product_options,state,tc_dict,title, user_id,'299 ' valid_from,valid_to\r\n'300 301 'SampleContract,,sample,CON1,DOC1, [u\'2014-12-04 12:10:46 UTC - '297 'fee_based,history,last_product_id,' 298 'product_object,product_options,state,tc_dict,title,' 299 'user_id,valid_from,valid_to\r\n' 300 301 'SampleContract,,sample,CON1,DOC1,1,[u\'2014-12-04 12:10:46 UTC - ' 302 302 'Contract created by system\'],,' 303 303 'SAM,"[(u\'Base Fee\', u\'800.6\', u\'USD\')]",' … … 317 317 self.assertMatches( 318 318 'class_name,comment,contract_category,contract_id,document_object,' 319 ' history,last_product_id,'320 'product_object,product_options,state,tc_dict,title, user_id,'321 ' valid_from,valid_to\r\n'322 323 'SampleContract,,sample,CON1,DOC1, [u\'2014-12-04 12:10:46 UTC - '319 'fee_based,history,last_product_id,' 320 'product_object,product_options,state,tc_dict,title,' 321 'user_id,valid_from,valid_to\r\n' 322 323 'SampleContract,,sample,CON1,DOC1,1,[u\'2014-12-04 12:10:46 UTC - ' 324 324 'Contract created by system\'],,' 325 325 'SAM,"[(u\'Base Fee\', u\'800.6\', u\'USD\')]",'
Note: See TracChangeset for help on using the changeset viewer.