fixed bug 788885 so that currency lookup tests run outside of the USA
This commit is contained in:
Родитель
5cac981b71
Коммит
b9e9129e49
|
@ -1,3 +1,4 @@
|
|||
from babel import numbers
|
||||
from datetime import datetime, timedelta
|
||||
from decimal import Decimal
|
||||
import json
|
||||
|
@ -437,7 +438,13 @@ class TestAppSummaryPurchases(AppSummaryTest):
|
|||
|
||||
def assert_totals(self, data):
|
||||
eq_(data['total'], 6)
|
||||
eq_(sorted(data['amounts']), [u'$6.00', u'\u20ac3.00'])
|
||||
six_bucks = numbers.format_currency(6,
|
||||
'USD',
|
||||
locale=numbers.LC_NUMERIC)
|
||||
three_euro = numbers.format_currency(3,
|
||||
'EUR',
|
||||
locale=numbers.LC_NUMERIC)
|
||||
eq_(sorted(data['amounts']), [six_bucks, three_euro])
|
||||
|
||||
def assert_empty(self, data):
|
||||
eq_(data['total'], 0)
|
||||
|
|
Загрузка…
Ссылка в новой задаче