from buyercall.blueprints.billing.template_processors import format_currency
def test_format_currency():
test_to_dollars = format_currency(123456)
test_general = format_currency(123456, False)
assert test_to_dollars == '1,234.56'
assert test_general == '123,456.00'