mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-28 18:14:42 +00:00
Test more command arguments
This commit is contained in:
parent
5fef9a3b60
commit
8007940770
1 changed files with 10 additions and 1 deletions
|
|
@ -27,7 +27,16 @@ class TestLinkchecker(unittest.TestCase):
|
|||
|
||||
def test_linkchecker(self):
|
||||
# test some single options
|
||||
for option in ("-V", "--version", "-h", "--help", "--list-plugins", "-Dall"):
|
||||
for option in (
|
||||
"-V",
|
||||
"--version",
|
||||
"-h",
|
||||
"--help",
|
||||
"--list-plugins",
|
||||
"-Dall",
|
||||
"-ocsv",
|
||||
"-Fhtml",
|
||||
):
|
||||
run_with_options([option])
|
||||
# unknown option
|
||||
self.assertRaises(OSError, run_with_options, ["--imadoofus"])
|
||||
|
|
|
|||
Loading…
Reference in a new issue