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

Method test_port_opt

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

Source from the content-addressed store, hash-verified

66 main(["--interface", "127.0.0.1", "-p", "0"])
67
68 def test_port_opt(self):
69 # no param
70 with pytest.raises(SystemExit):
71 main(["-p"])
72 # not an int
73 with pytest.raises(SystemExit):
74 main(["-p", "foo"])
75 main(["-p", "0"])
76 main(["--port", "0"])
77
78 def test_write_opt(self):
79 with warnings.catch_warnings():

Callers

nothing calls this directly

Calls 1

mainFunction · 0.90

Tested by

no test coverage detected