コード例 #1
0
def test_setup_owners_2(not_setup_wallet, owners_2):
    not_setup_wallet.setup(owners_2, 1)

    for i in range(10):
        assert not_setup_wallet.owners(i) == owners_2[i]
コード例 #2
0
def test_setup_nonce(not_setup_wallet, owners_2):
    not_setup_wallet.setup(owners_2, 2)
    assert not_setup_wallet.nonce() == 0

# def test_wallet_can_receive_eth():
#     pass
コード例 #3
0
def test_setup_only_once(not_setup_wallet, owners_2):
    not_setup_wallet.setup(owners_2, 2)
    with reverts():
        not_setup_wallet.setup(owners_2, 2)
コード例 #4
0
def test_setup_threshold_not_too_low(not_setup_wallet, owners_2):
    with reverts():
        not_setup_wallet.setup(owners_2, 0)
コード例 #5
0
def test_setup_threshold_not_higher_than_num_owners(not_setup_wallet, owners_2):
    with reverts():
        not_setup_wallet.setup(owners_2, 3)
    with reverts():
        not_setup_wallet.setup(owners_2, 10)
コード例 #6
0
def test_setup_threshold(not_setup_wallet, owners_2):
    not_setup_wallet.setup(owners_2, 2)
    assert not_setup_wallet.threshold() == 2