# Path: bluechips/model/types.py
# def localeconv():
#     def _to_python(self, value, state):
#     def __new__(cls, value):
#     def __int__(self):
#     def __float__(self):
#     def __long__(self):
#     def __cmp__(self, other):
#     def __mul__(self, other):
#     def __rmul__(self, other):
#     def __div__(self, other):
#     def __truediv__(self, other):
#     def __repr__(self):
#     def __str__(self):
#     def process_bind_param(self, value, engine):
#     def convert_result_value(self, value, engine):
# class CurrencyValidator(validators.FancyValidator):
# class Currency(object):
# class DBCurrency(sa.types.TypeDecorator):


from unittest import TestCase
from formencode import Invalid
from bluechips.model import types


class TestCurrencyValidator(TestCase):
    def setUp(self):
        self.v = types.CurrencyValidator()

    def test_currency_validator_good(self):
        assert (self.v.to_python('12.34') ==

# Path: bluechips/model/types.py
# def localeconv():
#     def _to_python(self, value, state):
#     def __new__(cls, value):
#     def __int__(self):
#     def __float__(self):
#     def __long__(self):
#     def __cmp__(self, other):
#     def __mul__(self, other):
#     def __rmul__(self, other):
#     def __div__(self, other):
#     def __truediv__(self, other):
#     def __repr__(self):
#     def __str__(self):
#     def process_bind_param(self, value, engine):
#     def convert_result_value(self, value, engine):
# class CurrencyValidator(validators.FancyValidator):
# class Currency(object):
# class DBCurrency(sa.types.TypeDecorator):


# Path: bluechips/tests/model/test_currency_validator.py
from unittest import TestCase
from formencode import Invalid
from bluechips.model import types



class TestCurrencyValidator(TestCase):
    def setUp(self):
        self.v = types.CurrencyValidator()

    def test_currency_validator_good(self):
        assert (self.v.to_python('12.34') ==

                types.Currency('12.34'))