Skip to content

Commit

Permalink
Test self delegate vesting shares (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
chiliec authored Jan 10, 2024
1 parent 76cf32b commit fde7aea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@ def test_negative_delegate_vesting_shares(viz):
viz.delegate_vesting_shares(delegator='alice', delegatee='bob', amount=-10)


def test_self_delegate_vesting_shares(viz, default_account):
with pytest.raises(UnhandledRPCError, match='delegator != delegatee: You cannot delegate SHARES to yourself'):
viz.delegate_vesting_shares(delegator=default_account, delegatee=default_account, amount=10)


def test_too_much_beneficiaries(viz, default_account):
beneficiaries = [{"account": default_account, "weight": 50}] * 256

Expand Down

0 comments on commit fde7aea

Please sign in to comment.