示例#1
0
 def test_zero_places(self):
     assert Decimal(satoshi_to_currency(100000,
                                        'jpy')).as_tuple().exponent == 0
示例#2
0
 def test_no_exponent(self):
     assert satoshi_to_currency(1, 'btc') == '0.00000001'