def setup_module(module): module.usd = rockefeller.Currency(name='United States Dollar', code='USD', numeric='840', symbol=u'$', exponent=2).support() module.eur = rockefeller.Currency(name='Euro', code='EUR', numeric='978', symbol=u'€', exponent=2).support()
def setup_module(module): rockefeller.Currency(name='United States Dollar', code='USD', numeric=840, symbol=u'$', exponent=2).support() rockefeller.Currency(name='Euro', code='EUR', numeric=978, symbol=u'€', exponent=2).support() rockefeller.Currency(name='Chilean Peso', code='CLP', numeric=152, symbol=u'$', exponent=0).support() rockefeller.add_exchange_rate(rockefeller.Currency.USD, rockefeller.Currency.EUR, exchange_rate=.78) rockefeller.add_exchange_rate(rockefeller.Currency.USD, rockefeller.Currency.CLP, exchange_rate=472.30)
def setup_module(module): module.usd = rockefeller.Currency(name='United States Dollar', code='USD', numeric='840', symbol=u'$', exponent=2)
def test_not_equality(self): assert usd != rockefeller.Currency(name='', code='EUR', numeric='', symbol='', exponent=2)