コード例 #1
0
ファイル: test_views.py プロジェクト: flyun/zamboni
 def test_parse_currency(self, urlopen):
     res = views._parse_currency(sample_refund['transaction[0].amount'])
     eq_(res['amount'], Decimal('1.00'))
     eq_(res['currency'], 'USD')
コード例 #2
0
ファイル: test_views.py プロジェクト: flyun/zamboni
 def test_parse_currency_solitude(self, urlopen):
     res = views._parse_currency({'amount': '1.00', 'currency': 'USD'})
     eq_(res['amount'], Decimal('1.00'))
コード例 #3
0
ファイル: test_views.py プロジェクト: vdt/zamboni
 def test_parse_currency(self, urlopen):
     res = views._parse_currency(sample_refund["transaction[0].amount"])
     eq_(res["amount"], Decimal("1.00"))
     eq_(res["currency"], "USD")
コード例 #4
0
ファイル: test_views.py プロジェクト: prodigeni/zamboni
 def test_parse_currency_solitude(self, urlopen):
     res = views._parse_currency({'amount': '1.00', 'currency': 'USD'})
     eq_(res['amount'], Decimal('1.00'))
コード例 #5
0
ファイル: test_views.py プロジェクト: prodigeni/zamboni
 def test_parse_currency(self, urlopen):
     res = views._parse_currency(sample_refund['transaction[0].amount'])
     eq_(res['amount'], Decimal('1.00'))
     eq_(res['currency'], 'USD')
コード例 #6
0
ファイル: test_views.py プロジェクト: LucianU/zamboni
 def test_parse_currency(self, urlopen):
     # TODO(andym): flesh this out and conflate with ashort code.
     res = views._parse_currency(sample_refund['transaction[0].amount'])
     eq_(res['amount'], Decimal('0.01'))
     eq_(res['currency'], 'USD')
コード例 #7
0
 def test_parse_currency(self, urlopen):
     # TODO(andym): flesh this out and conflate with ashort code.
     res = views._parse_currency(sample_refund['transaction[0].amount'])
     eq_(res['amount'], Decimal('0.01'))
     eq_(res['currency'], 'USD')