Reorder tests to match others

This commit is contained in:
hugovk 2017-03-04 16:10:52 +02:00
parent 4ece1ae78a
commit 5d2e4f48dd

View File

@ -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()