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