(self)
| 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(): |