Exemple #1
0
def test_set_default_web3(all_manifests, w3):
    new_w3 = Web3(Web3.EthereumTesterProvider())
    current_package = Package(all_manifests, w3)
    assert current_package.w3 is w3
    current_package.set_default_w3(new_w3)
    assert current_package.w3 is new_w3
Exemple #2
0
def test_set_default_web3(all_standalone_manifests, w3):
    for manifest in all_standalone_manifests:
        current_package = Package(manifest)
        current_package.set_default_w3(w3)
        assert current_package.w3 is w3
Exemple #3
0
def test_set_default_web3(valid_package, w3):
    current_package = Package(valid_package)
    current_package.set_default_w3(w3)
    assert current_package.w3 is w3