Lines Matching refs:what
41 self.assertEqual(imghdr.what(filename), expected)
43 self.assertEqual(imghdr.what(ufilename), expected)
45 self.assertEqual(imghdr.what(stream), expected)
48 self.assertEqual(imghdr.what(None, data), expected)
56 self.assertEqual(imghdr.what(None, b'eggs'), 'ham')
65 self.assertEqual(imghdr.what(stream), 'png')
70 imghdr.what()
72 imghdr.what(None)
74 imghdr.what(self.testfile, 1)
77 imghdr.what(f.fileno())
86 self.assertIsNone(imghdr.what(None, header))
90 imghdr.what('missing')
96 imghdr.what(stream)
100 imghdr.what(stream)
107 imghdr.what(stream)
114 imghdr.what(stream)