def METHOD_NAME(self):
    def test_jumbo(h, file):
        if h.startswith(b'eggs'):
            return 'ham'
    imghdr.tests.append(test_jumbo)
    self.addCleanup(imghdr.tests.pop)
    self.assertEqual(imghdr.what(None, b'eggs'), 'ham')