def test_get_currencies(self): curr = coinex_api.currencies() self.assertTrue( isinstance( curr, list ), 'currencies should be a list' )
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
def test_get_currencies(self): curr = coinex_api.currencies() self.assertTrue(isinstance(curr, list), 'currencies should be a list')