Add tests for some device & address variables
[tinc] / test / integration / cmd_net.py
index d773839..887dfd1 100755 (executable)
@@ -10,17 +10,7 @@ from testlib.test import Test
 
 def init(ctx: Test) -> Tinc:
     """Initialize a node."""
-
-    node = ctx.node()
-    stdin = f"""
-        init {node}
-        set Port 0
-        set Address localhost
-        set DeviceType dummy
-        set AutoConnect no
-    """
-    node.cmd(stdin=stdin)
-    return node
+    return ctx.node(init="set AutoConnect no")
 
 
 def test_network(foo: Tinc) -> None: