def test_get_bakings_tzstats(self): api = TzscanAPI(address=self.REWARD_ADDRESS) result = api.get_bakings_tzstats() assert result["address"] == self.REWARD_ADDRESS assert "manager" in result assert "delegate" in result assert "manager_account" in result assert "delegate_account" in result
def test_get_endorsements(self): api = TzscanAPI(address=self.ADDRESS) result = api.get_endorsements() assert isinstance(result, list)
def test_get_txs(self): api = TzscanAPI(address=self.ADDRESS) result = api.get_txs() assert isinstance(result, list) assert len(result) == 3
def test_get_balance(self): api = TzscanAPI(address=self.ADDRESS) result = api.get_balance() assert result == [{'symbol': 'XTZ', 'amount': 2068856.4582429999}]
def test_init(self): api = TzscanAPI(address=self.ADDRESS) assert api
def test_get_balance(self): api = TzscanAPI(address=self.ADDRESS) result = api.get_balance() assert result == [{'symbol': 'XTZ', 'amount': 1221639.05003}]