Ejemplo n.º 1
0
def test_initial_gold_balance(new_acc):
    acc = AccountInfo(new_acc)
    response = acc.handle(PegasusUtil_pb2.GetAccountInfo.GOLD_BALANCE)

    assert isinstance(response, PegasusUtil_pb2.GoldBalance)
    assert response.capped_balance == 0
Ejemplo n.º 2
0
def test_initial_arcane_dust_balance(new_acc):
    acc = AccountInfo(new_acc)
    response = acc.handle(PegasusUtil_pb2.GetAccountInfo.ARCANE_DUST_BALANCE)

    assert isinstance(response, PegasusUtil_pb2.ArcaneDustBalance)
    assert response.balance == 0
Ejemplo n.º 3
0
 def get_account_info(self, req):
     account_info = AccountInfo(self.client_handler.account)
     return account_info.handle(req.request)