Add assert for previously unused 'lut' variable

This commit is contained in:
Hugo 2018-10-02 11:44:06 +03:00
parent 4352edb1ec
commit bac99bd5ae

View File

@ -294,6 +294,8 @@ class TestColorLut3DFilter(PillowTestCase):
lut = ImageFilter.Color3DLUT((2, 2, 2), [(0, 1, 2, 3)] * 8,
channels=4)
self.assertEqual(tuple(lut.size), (2, 2, 2))
self.assertEqual(lut.table, list(range(4)) * 8)
@unittest.skipIf(numpy is None, "Numpy is not installed")
def test_numpy_sources(self):