1
0
fin-defs/test/test_asset_amount.py

9 lines
163 B
Python
Raw Normal View History

2024-09-01 15:39:04 +00:00
from decimal import Decimal
import fin_defs
def test_str():
amount = fin_defs.AssetAmount(fin_defs.USD, Decimal(10))
assert str(amount) == '$10.00 USD'