MCPcopy
hub / github.com/giampaolo/pyftpdlib / test_interface_opt

Method test_interface_opt

tests/test_cli.py:60–66  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

58 super().tearDown()
59
60 def test_interface_opt(self):
61 # no param
62 with pytest.raises(SystemExit):
63 main(["-i"])
64 with pytest.raises(SystemExit):
65 main(["--interface"])
66 main(["--interface", "127.0.0.1", "-p", "0"])
67
68 def test_port_opt(self):
69 # no param

Callers

nothing calls this directly

Calls 1

mainFunction · 0.90

Tested by

no test coverage detected