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

Method test_configure_file

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

Source from the content-addressed store, hash-verified

267 self.assertEqual(image.height(), 16)
268
269 def test_configure_file(self):
270 image = tkinter.PhotoImage('::img::test', master=self.root)
271 self.assertEqual(image['file'], '')
272 image.configure(file=self.testfile)
273 self.assertEqual(image['file'], self.testfile)
274 self.assertEqual(image.width(), 16)
275 self.assertEqual(image.height(), 16)
276
277 def test_configure_gamma(self):
278 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