mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-21 04:34:47 +03:00
Add wrong command handling tests
This commit is contained in:
parent
438dc4504b
commit
9689d6c735
|
@ -78,6 +78,10 @@ def test_commandviewer():
|
|||
basecmd = "rm -f {file}"
|
||||
viewer = ImageShow.CommandViewer()
|
||||
im = hopper()
|
||||
with pytest.raises(TypeError):
|
||||
viewer.get_command(viewer.save_image(im))
|
||||
with pytest.raises(TypeError):
|
||||
viewer.get_command(viewer.save_image(im), command=5)
|
||||
viewer.get_command(viewer.save_image(im), command=basecmd)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user