1 from unittest import TestCase
2 from bluechips.model import types
4 class TestCurrency(TestCase):
6 self.c = types.Currency('12.34')
8 def test_currency_float(self):
9 assert float(self.c) == 1234.
11 def test_currency_int(self):
14 assert type(val) == int
16 def test_currency_long(self):
19 assert type(val) == long