def test_currencyfmt():
    assert helpers.currencyfmt(None, 'USD') == ''
    assert helpers.currencyfmt(5, 'USD') == '$5.00'
    assert helpers.currencyfmt('12', 'USD') == '$12.00'
Example #2
0
def test_currencyfmt():
    eq_(helpers.currencyfmt(None, 'USD'), '')
    eq_(helpers.currencyfmt(5, 'USD'), '$5.00')
    eq_(helpers.currencyfmt('12', 'USD'), '$12.00')
Example #3
0
def test_currencyfmt():
    eq_(helpers.currencyfmt(None, 'USD'), '')
    eq_(helpers.currencyfmt(5, 'USD'), '$5.00')
    eq_(helpers.currencyfmt('12', 'USD'), '$12.00')
Example #4
0
def test_currencyfmt():
    assert helpers.currencyfmt(None, 'USD') == ''
    assert helpers.currencyfmt(5, 'USD') == '$5.00'
    assert helpers.currencyfmt('12', 'USD') == '$12.00'