Pillow/Tests/test_imagegrab.py

26 lines
551 B
Python
Raw Normal View History

2014-07-07 21:03:50 +04:00
from helper import unittest, PillowTestCase
try:
from PIL import ImageGrab
2014-06-10 13:10:47 +04:00
class TestImageCopy(PillowTestCase):
2014-06-10 13:10:47 +04:00
def test_grab(self):
im = ImageGrab.grab()
self.assert_image(im, im.mode, im.size)
2014-06-10 13:10:47 +04:00
def test_grab2(self):
im = ImageGrab.grab()
self.assert_image(im, im.mode, im.size)
except ImportError:
class TestImageCopy(PillowTestCase):
def test_skip(self):
self.skipTest("ImportError")
if __name__ == '__main__':
unittest.main()
# End of file