Replaced deprecated assert_

This commit is contained in:
Andrew Murray 2017-05-30 19:55:35 +10:00
parent 4b1784c9ad
commit 2a5447691a

View File

@ -390,7 +390,7 @@ class TestRegistry(PillowTestCase):
def test_encode_registry(self):
Image.register_encoder('MOCK', mock_encode)
self.assert_('MOCK' in Image.ENCODERS)
self.assertIn('MOCK', Image.ENCODERS)
enc = Image._getencoder('RGB', 'MOCK', ('args',), extra=('extra',))