def METHOD_NAME(self):
    for filename, expected in TEST_FILES:
        with self.subTest(filename=filename):
            filename = findfile(filename, subdir='imghdrdata')
            self.assertEqual(imghdr.what(pathlib.Path(filename)), expected)