(self)
| 135 | main(["-r", "yyy-zzz"]) |
| 136 | |
| 137 | def test_debug_opt(self): |
| 138 | main(["-D", "-p", "0"]) |
| 139 | main(["--debug", "-p", "0"]) |
| 140 | # with arg |
| 141 | with pytest.raises(SystemExit): |
| 142 | main(["-D", "xxx"]) |
| 143 | |
| 144 | def test_username_and_password_opt(self): |
| 145 | ftpd = main(["--username", "foo", "--password", "bar", "-p", "0"]) |