aboutsummaryrefslogtreecommitdiffstats
path: root/test/tutils.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/tutils.py')
-rw-r--r--test/tutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tutils.py b/test/tutils.py
index 69f79a91..e7720d33 100644
--- a/test/tutils.py
+++ b/test/tutils.py
@@ -55,7 +55,7 @@ def tclient_conn():
"""
@return: libmproxy.proxy.connection.ClientConnection
"""
- c = ClientConnection._from_state(dict(
+ c = ClientConnection.from_state(dict(
address=dict(address=("address", 22), use_ipv6=True),
clientcert=None
))
@@ -67,7 +67,7 @@ def tserver_conn():
"""
@return: libmproxy.proxy.connection.ServerConnection
"""
- c = ServerConnection._from_state(dict(
+ c = ServerConnection.from_state(dict(
address=dict(address=("address", 22), use_ipv6=True),
state=[],
source_address=dict(address=("address", 22), use_ipv6=True),