Пример #1
0
    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
Пример #2
0
    def test_get_endorsements(self):
        api = TzscanAPI(address=self.ADDRESS)
        result = api.get_endorsements()

        assert isinstance(result, list)
Пример #3
0
    def test_get_txs(self):
        api = TzscanAPI(address=self.ADDRESS)
        result = api.get_txs()

        assert isinstance(result, list)
        assert len(result) == 3
Пример #4
0
    def test_get_balance(self):
        api = TzscanAPI(address=self.ADDRESS)
        result = api.get_balance()

        assert result == [{'symbol': 'XTZ', 'amount': 2068856.4582429999}]
Пример #5
0
 def test_init(self):
     api = TzscanAPI(address=self.ADDRESS)
     assert api
Пример #6
0
    def test_get_balance(self):
        api = TzscanAPI(address=self.ADDRESS)
        result = api.get_balance()

        assert result == [{'symbol': 'XTZ', 'amount': 1221639.05003}]