Ignore:
Timestamp:
30 Dec 2014, 10:19:47 (10 years ago)
Author:
Henrik Bettermann
Message:

Fix currency keys.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/utils/tests/test_converters.py

    r12327 r12342  
    389389        converter = IObjectConverter(IContact)
    390390        # 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')]"
    392392        err, inv_err, data = converter.fromStringDict(
    393393            {"options": req_string,}, 'contact')
     
    397397        self.assertEqual(result_options[0].title, 'T1')
    398398        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')
    400400        self.assertEqual(result_options[1].title, 'T2')
    401401        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')
    403403        return
    404404
Note: See TracChangeset for help on using the changeset viewer.