示例#1
0
 def test_get_currencies(self):
     curr = coinex_api.currencies()
     self.assertTrue(
         isinstance(
             curr,
             list
         ),
         'currencies should be a list'
     )
示例#2
0
 def _refresh(cls):
     """
     Refresh all currencies, reloading from the API
     """
     registry.delete_all(cls)
     curs = coinex_api.currencies()
     for cur in curs:
         curncy = Currency(cur['id'], cur['name'], cur['desc'])
         registry.put(curncy)
     cls._loaded = True
示例#3
0
 def test_get_currencies(self):
     curr = coinex_api.currencies()
     self.assertTrue(isinstance(curr, list), 'currencies should be a list')