Exemplo n.º 1
0
 def test_no_exponent(self):
     assert satoshi_to_currency(1, "bch") == "0.00000001"
Exemplo n.º 2
0
 def test_zero_places(self):
     assert Decimal(satoshi_to_currency(100000,
                                        "jpy")).as_tuple().exponent == 0
Exemplo n.º 3
0
 def test_no_exponent(self):
     assert satoshi_to_currency(1, 'bch') == '0.00000001'