@@ -452,11 +452,11 @@ def test_resolve_nodes_fallback_to_default(monkeypatch):
452452 assert resolved_nodes [0 ]._account_id == network .DEFAULT_NODES [network_name ][0 ][1 ]
453453
454454
455- def test_network_default_is_local ():
456- """Test that a new Network defaults to localhost and non- tls."""
455+ def test_network_default_is_testnet ():
456+ """Test that a new Network defaults to testnet and tls."""
457457 network = Network ()
458- assert network .network == "localhost "
459- assert network ._transport_security is False
458+ assert network .network == "testnet "
459+ assert network ._transport_security is True
460460
461461
462462@pytest .mark .parametrize ("network" , ["mainnet" , "previewnet" , "testnet" ])
@@ -483,7 +483,7 @@ def test_self_hosted_network_respect_port_50212(network):
483483 assert network ._transport_security is True
484484
485485
486- @pytest .mark .parametrize ("network" , ["local" , "localhost" , "solo" , "custom" , None ])
486+ @pytest .mark .parametrize ("network" , ["local" , "localhost" , "solo" , "custom" ])
487487def test_non_hosted_network_respects_port_50211 (network ):
488488 """Test that on non-hosted network, port 50211 stays 50211 and remains non-tls."""
489489 node_50211 = _Node (AccountId (0 , 0 , 3 ), "127.0.0.1:50211" , None )
@@ -495,7 +495,7 @@ def test_non_hosted_network_respects_port_50211(network):
495495 assert network ._transport_security is False
496496
497497
498- @pytest .mark .parametrize ("network" , ["local" , "localhost" , "solo" , "custom" , None ])
498+ @pytest .mark .parametrize ("network" , ["local" , "localhost" , "solo" , "custom" ])
499499def test_non_hosted_network_respect_port_50212 (network ):
500500 """Test that on non hosted network respect port 50212"""
501501 node_50211 = _Node (AccountId (0 , 0 , 3 ), "127.0.0.1:50212" , None )
0 commit comments