Changeset 12342 for main/waeup.ikoba/trunk/src/waeup/ikoba/utils
- Timestamp:
- 30 Dec 2014, 10:19:47 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/utils/tests/test_converters.py
r12327 r12342 389 389 converter = IObjectConverter(IContact) 390 390 # get currently valid values 391 req_string = u"[(u'T1', u'55.6', u' usd'), (u'T2', u'66.6', u'eur')]"391 req_string = u"[(u'T1', u'55.6', u'USD'), (u'T2', u'66.6', u'EUR')]" 392 392 err, inv_err, data = converter.fromStringDict( 393 393 {"options": req_string,}, 'contact') … … 397 397 self.assertEqual(result_options[0].title, 'T1') 398 398 self.assertEqual(result_options[0].fee, Decimal('55.6')) 399 self.assertEqual(result_options[0].currency, ' usd')399 self.assertEqual(result_options[0].currency, 'USD') 400 400 self.assertEqual(result_options[1].title, 'T2') 401 401 self.assertEqual(result_options[1].fee, Decimal('66.6')) 402 self.assertEqual(result_options[1].currency, ' eur')402 self.assertEqual(result_options[1].currency, 'EUR') 403 403 return 404 404
Note: See TracChangeset for help on using the changeset viewer.