mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Reorder tests to match others
This commit is contained in:
parent
4ece1ae78a
commit
5d2e4f48dd
|
@ -27,6 +27,13 @@ class TestFileGribStub(PillowTestCase):
|
|||
lambda:
|
||||
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):
|
||||
# Arrange
|
||||
im = hopper()
|
||||
|
@ -35,13 +42,6 @@ class TestFileGribStub(PillowTestCase):
|
|||
# Act / Assert: stub cannot save without an implemented handler
|
||||
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__':
|
||||
unittest.main()
|
||||
|
|
Loading…
Reference in New Issue
Block a user