def test_add_dev_missing_field(): with pytest.raises(ValueError): cli_networks._add("development", "tester", "host=127.0.0.1" "port=411")
def test_add_unknown_field(): with pytest.raises(ValueError): cli_networks._add("FooChain", "tester", "host=127.0.0.1", "chainid=42", "foo=bar")
def test_add_exists(): with pytest.raises(ValueError): cli_networks._add("FooChain", "development", "host=127.0.0.1", "chainid=42")
def test_add_missing_field(): with pytest.raises(ValueError): cli_networks._add("FooChain", "tester", "chainid=42")
def test_add_dev_unknown_field(): with pytest.raises(ValueError): cli_networks._add("development", "tester", "cmd=foo", "host=127.0.0.1" "chainid=411")