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