mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-05 08:23:42 +03:00
Reorder tests to match others
This commit is contained in:
parent
4ece1ae78a
commit
5d2e4f48dd
|
@ -27,6 +27,13 @@ class TestFileGribStub(PillowTestCase):
|
||||||
lambda:
|
lambda:
|
||||||
GribStubImagePlugin.GribStubImageFile(invalid_file))
|
GribStubImagePlugin.GribStubImageFile(invalid_file))
|
||||||
|
|
||||||
|
def test_load(self):
|
||||||
|
# Arrange
|
||||||
|
im = Image.open(TEST_FILE)
|
||||||
|
|
||||||
|
# Act / Assert: stub cannot load without an implemented handler
|
||||||
|
self.assertRaises(IOError, lambda: im.load())
|
||||||
|
|
||||||
def test_save(self):
|
def test_save(self):
|
||||||
# Arrange
|
# Arrange
|
||||||
im = hopper()
|
im = hopper()
|
||||||
|
@ -35,13 +42,6 @@ class TestFileGribStub(PillowTestCase):
|
||||||
# Act / Assert: stub cannot save without an implemented handler
|
# Act / Assert: stub cannot save without an implemented handler
|
||||||
self.assertRaises(IOError, lambda: im.save(tmpfile))
|
self.assertRaises(IOError, lambda: im.save(tmpfile))
|
||||||
|
|
||||||
def test_load(self):
|
|
||||||
# Arrange
|
|
||||||
im = Image.open(TEST_FILE)
|
|
||||||
|
|
||||||
# Act / Assert: stub cannot load without an implemented handler
|
|
||||||
self.assertRaises(IOError, lambda: im.load())
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user