MCPcopy Index your code
hub / github.com/python/cpython / test_configure_format

Method test_configure_format

Lib/test/test_tkinter/test_images.py:260–267  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

258 self.assertEqual(image.height(), 16)
259
260 def test_configure_format(self):
261 image = tkinter.PhotoImage('::img::test', master=self.root)
262 self.assertEqual(image['format'], '')
263 image.configure(file=self.testfile, format='gif')
264 self.assertEqual(image['format'], ('gif',) if self.wantobjects
265 else 'gif')
266 self.assertEqual(image.width(), 16)
267 self.assertEqual(image.height(), 16)
268
269 def test_configure_file(self):
270 image = tkinter.PhotoImage('::img::test', master=self.root)

Callers

nothing calls this directly

Calls 4

heightMethod · 0.80
assertEqualMethod · 0.45
configureMethod · 0.45
widthMethod · 0.45

Tested by

no test coverage detected