Lines Matching full:what
45 self.assertEqual(imghdr.what(filename), expected)
47 self.assertEqual(imghdr.what(stream), expected)
50 self.assertEqual(imghdr.what(None, data), expected)
51 self.assertEqual(imghdr.what(None, bytearray(data)), expected)
57 self.assertEqual(imghdr.what(pathlib.Path(filename)), expected)
65 self.assertEqual(imghdr.what(None, b'eggs'), 'ham')
74 self.assertEqual(imghdr.what(stream), 'png')
79 imghdr.what()
81 imghdr.what(None)
83 imghdr.what(self.testfile, 1)
85 imghdr.what(os.fsencode(self.testfile))
88 imghdr.what(f.fileno())
97 self.assertIsNone(imghdr.what(None, header))
107 imghdr.what(io.StringIO(data))
109 imghdr.what(None, data)
113 imghdr.what('missing')
119 imghdr.what(stream)
123 imghdr.what(stream)
130 imghdr.what(stream)
137 imghdr.what(stream)