diff --git a/Tests/test_file_gribstub.py b/Tests/test_file_gribstub.py index ea43d13c0..80e141503 100644 --- a/Tests/test_file_gribstub.py +++ b/Tests/test_file_gribstub.py @@ -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()