Changeset 12342 for main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests
- Timestamp:
- 30 Dec 2014, 10:19:47 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/sample_contract_data.csv
r12336 r12342 1 1 class_name,contract_id,reg_number,product_object,document_object,product_options 2 SampleContract,c3,1,SAM,DOC1,"[('Base Fee', '800.6', ' usd')]"2 SampleContract,c3,1,SAM,DOC1,"[('Base Fee', '800.6', 'USD')]" 3 3 SampleContract,c4,2,SAM,DOC1,[] 4 4 SampleContract,c5,3,SAM,DOC1,[] -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_batching.py
r12336 r12342 104 104 option.title = u'Base Fee' 105 105 option.fee = Decimal('800.6') 106 option.currency = ' usd'106 option.currency = 'USD' 107 107 self.product.options = [option,] 108 108 self.app['products'].addProduct(self.product) … … 501 501 self.assertEqual(contract.product_options[0].title, 'Base Fee') 502 502 self.assertEqual(contract.product_options[0].fee, Decimal('800.6') ) 503 self.assertEqual(contract.product_options[0].currency, ' usd')503 self.assertEqual(contract.product_options[0].currency, 'USD') 504 504 self.assertEqual(contract.contract_id, 'c3') 505 505 contract = self.processor.getEntry(dict(reg_number='3', -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12341 r12342 109 109 prodoption.title = u'First option' 110 110 prodoption.fee = Decimal('99.9') 111 prodoption.currency = ' usd'111 prodoption.currency = 'USD' 112 112 self.product.options = [prodoption,] 113 113 self.app['products'].addProduct(self.product) … … 1287 1287 prodoption.title = u'Any product option' 1288 1288 prodoption.fee = Decimal('88.8') 1289 prodoption.currency = ' eur'1289 prodoption.currency = 'EUR' 1290 1290 contract.product_options = [prodoption,] 1291 1291 self.browser.open(self.contracts_path + '/%s/edit' % conid) … … 1293 1293 # from the chosen product. 1294 1294 self.assertTrue('<option selected="selected" value="Any product option">' 1295 'Any product option @ 88.8 eur</option>'1295 'Any product option @ 88.8 EUR</option>' 1296 1296 in self.browser.contents) 1297 1297 self.assertTrue('<option value="First option">First option ' 1298 '@ 99.9 usd</option>' in self.browser.contents)1298 '@ 99.9 USD</option>' in self.browser.contents) 1299 1299 # In test browser we can at least replace the option 1300 1300 self.browser.getControl( … … 1304 1304 self.assertEqual(contract.product_options[0].title, 'First option') 1305 1305 self.browser.getLink("View").click() 1306 self.assertTrue('<span>First option @ 99.9 usd</span>' in self.browser.contents)1306 self.assertTrue('<span>First option @ 99.9 USD</span>' in self.browser.contents) 1307 1307 self.assertEqual(self.browser.url, self.contracts_path + '/%s/index' % conid) 1308 1308 # An href attribute is referring to the document and product objects -
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_export.py
r12336 r12342 277 277 'SampleContract,sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - ' 278 278 'Contract created by system\'],,' 279 'SAM,"[(u\'Base Fee\', u\'800.6\', u\' usd\')]",'279 'SAM,"[(u\'Base Fee\', u\'800.6\', u\'USD\')]",' 280 280 'created,Our Sample Product,A111111\r\n', 281 281 result … … 297 297 'SampleContract,sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - ' 298 298 'Contract created by system\'],,' 299 'SAM,"[(u\'Base Fee\', u\'800.6\', u\' usd\')]",'299 'SAM,"[(u\'Base Fee\', u\'800.6\', u\'USD\')]",' 300 300 'created,Our Sample Product,A111111\r\n', 301 301 result … … 317 317 'SampleContract,sample,CON1,DOC1,[u\'2014-12-04 12:10:46 UTC - ' 318 318 'Contract created by system\'],,' 319 'SAM,"[(u\'Base Fee\', u\'800.6\', u\' usd\')]",'319 'SAM,"[(u\'Base Fee\', u\'800.6\', u\'USD\')]",' 320 320 'created,Our Sample Product,A111111\r\n', 321 321 result
Note: See TracChangeset for help on using the changeset viewer.