diff --git a/tests/test_exceptions.py b/tests/test_exceptions.py index cb77f04..2a67f19 100644 --- a/tests/test_exceptions.py +++ b/tests/test_exceptions.py @@ -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