diff --git a/tests/unit/utils/usertypes/test_downloadtarget.py b/tests/unit/utils/usertypes/test_downloadtarget.py index e89401144..4da2e7a81 100644 --- a/tests/unit/utils/usertypes/test_downloadtarget.py +++ b/tests/unit/utils/usertypes/test_downloadtarget.py @@ -41,8 +41,13 @@ def test_fileobj(): def test_openfile(): - # Just make sure no error is raised, that should be enough. - usertypes.OpenFileDownloadTarget() + target = usertypes.OpenFileDownloadTarget() + assert target.cmdline is None + + +def test_openfile_custom_command(): + target = usertypes.OpenFileDownloadTarget('echo') + assert target.cmdline == 'echo' @pytest.mark.parametrize('obj', [