Ejemplo n.º 1
0
def test_delegate_exists_returns_true_if_exists(redis):
    manager = WalletManager()

    redis.set("wallets:username:test", "")
    assert manager.delegate_exists("test") is True
Ejemplo n.º 2
0
def test_delegate_exists_returns_false_if_does_not_exist(redis):
    public_key = "020f5df4d2bc736d12ce43af5b1663885a893fade7ee5e62b3cc59315a63e6a325"
    manager = WalletManager()
    assert manager.delegate_exists(public_key) is False