2014-06-04 17:18:04 +04:00
|
|
|
from helper import unittest, PillowTestCase
|
|
|
|
|
|
|
|
try:
|
|
|
|
from PIL import ImageGrab
|
|
|
|
|
|
|
|
class TestImageCopy(PillowTestCase):
|
|
|
|
|
|
|
|
def test_grab(self):
|
|
|
|
im = ImageGrab.grab()
|
|
|
|
self.assert_image(im, im.mode, im.size)
|
|
|
|
|
|
|
|
def test_grab2(self):
|
|
|
|
im = ImageGrab.grab()
|
|
|
|
self.assert_image(im, im.mode, im.size)
|
|
|
|
|
2014-06-04 18:09:59 +04:00
|
|
|
except ImportError:
|
2014-06-04 17:18:04 +04:00
|
|
|
class TestImageCopy(PillowTestCase):
|
|
|
|
def test_skip(self):
|
2014-06-04 18:09:59 +04:00
|
|
|
self.skipTest("ImportError")
|
2014-06-04 17:18:04 +04:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__':
|
|
|
|
unittest.main()
|
|
|
|
|
|
|
|
# End of file
|