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

Method test_configure_file

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

Source from the content-addressed store, hash-verified

145 ('-maskdata', '', '', '', data.decode('ascii')))
146
147 def test_configure_file(self):
148 image = tkinter.BitmapImage('::img::test', master=self.root)
149 self.assertEqual(image['file'], '-file {} {} {} {}')
150 image.configure(file=self.testfile)
151 self.assertEqualStrList(image['file'],
152 ('-file', '', '', '',self.testfile))
153 self.assertEqual(image.width(), 16)
154 self.assertEqual(image.height(), 16)
155
156 self.assertEqual(image['maskfile'], '-maskfile {} {} {} {}')
157 image.configure(maskfile=self.testfile)
158 self.assertEqualStrList(image['maskfile'],
159 ('-maskfile', '', '', '', self.testfile))
160
161 def test_configure_background(self):
162 image = tkinter.BitmapImage('::img::test', master=self.root)

Callers

nothing calls this directly

Calls 5

assertEqualStrListMethod · 0.95
heightMethod · 0.80
assertEqualMethod · 0.45
configureMethod · 0.45
widthMethod · 0.45

Tested by

no test coverage detected