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

Method test_configure_from

Lib/test/test_ttk/test_widgets.py:1301–1309  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1299 self.assertEqual(self.spin.get(), '5')
1300
1301 def test_configure_from(self):
1302 self.spin['from'] = 1
1303 self.spin['to'] = 10
1304 self.spin.set(2)
1305 self.spin.update()
1306 self._click_decrement_arrow() # 1
1307 self.assertEqual(self.spin.get(), '1')
1308 self._click_decrement_arrow() # 1
1309 self.assertEqual(self.spin.get(), '1')
1310
1311 def test_configure_increment(self):
1312 self.spin['from'] = 0

Callers

nothing calls this directly

Calls 5

setMethod · 0.45
updateMethod · 0.45
assertEqualMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected