Skip to content

Commit

Permalink
Test NotImplementedError
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Jan 6, 2016
1 parent 02ec83e commit 517cbbf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Tests/test_file_dds.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from PIL import Image, DdsImagePlugin

TEST_FILE_DXT1 = "Tests/images/dxt1-rgb-4bbp-noalpha_MipMaps-1.dds"
TEST_FILE_DXT3 = "Tests/images/dxt3-argb-8bbp-explicitalpha_MipMaps-1.dds"
TEST_FILE_DXT5 = "Tests/images/dxt5-argb-8bbp-interpolatedalpha_MipMaps-1.dds"


Expand All @@ -24,6 +25,10 @@ def test_sanity_dxt5(self):
self.assertEqual(im.size, (256, 256))
self.assertIsInstance(im, DdsImagePlugin.DdsImageFile)

def test_sanity_dxt3(self):
self.assertRaises(NotImplementedError,
lambda: Image.open(TEST_FILE_DXT3))

def test__validate_true(self):
# Arrange
prefix = b"DDS etc"
Expand Down

0 comments on commit 517cbbf

Please sign in to comment.