Exemplo n.º 1
0
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()
Exemplo n.º 2
0
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)
Exemplo n.º 3
0
def setup_module(module):
    module.usd = rockefeller.Currency(name='United States Dollar',
                                      code='USD', numeric='840',
                                      symbol=u'$', exponent=2)
Exemplo n.º 4
0
 def test_not_equality(self):
     assert usd != rockefeller.Currency(name='', code='EUR', numeric='',
                                        symbol='', exponent=2)