Changeset 12343 for main/waeup.ikoba/trunk/src/waeup/ikoba/customers
- Timestamp:
- 30 Dec 2014, 12:52:40 (10 years ago)
- Location:
- main/waeup.ikoba/trunk/src/waeup/ikoba/customers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/customers/tests/test_browser.py
r12342 r12343 1293 1293 # from the chosen product. 1294 1294 self.assertTrue('<option selected="selected" value="Any product option">' 1295 'Any product option @ 88.8 E UR</option>'1295 'Any product option @ 88.8 Euro</option>' 1296 1296 in self.browser.contents) 1297 1297 self.assertTrue('<option value="First option">First option ' 1298 '@ 99.9 US D</option>' in self.browser.contents)1298 '@ 99.9 US Dollar</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 US D</span>' in self.browser.contents)1306 self.assertTrue('<span>First option @ 99.9 US Dollar</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/vocabularies.py
r12340 r12343 33 33 from waeup.ikoba.utils.helpers import get_sorted_preferred 34 34 from waeup.ikoba.utils.countries import COUNTRIES 35 from waeup.ikoba.payments.currencies import ISO_4217_CURRENCIES 35 36 36 37 #: a tuple of tuples (<COUNTRY-NAME>, <ISO-CODE>) with Nigeria first. … … 203 204 204 205 def getTitle(self, context, value): 205 return "%s @ %s %s" % (value.title, value.fee, value.currency) 206 currency = ISO_4217_CURRENCIES[value.currency][1] 207 return "%s @ %s %s" % (value.title, value.fee, currency)
Note: See TracChangeset for help on using the changeset viewer.