(arg, output)
| 50 | ], |
| 51 | ) |
| 52 | def test_check_args(arg, output): |
| 53 | f = io.StringIO() |
| 54 | with contextlib.redirect_stdout(f): |
| 55 | with mock.patch("sys.argv") as m: |
| 56 | m.__getitem__.return_value = arg |
| 57 | arg_check.check() |
| 58 | assert f.getvalue().strip() == output |