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

Method test_configure_command

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

Source from the content-addressed store, hash-verified

1267 self.spin.update_idletasks()
1268
1269 def test_configure_command(self):
1270 success = []
1271
1272 self.spin['command'] = lambda: success.append(True)
1273 self.spin.update()
1274 self._click_increment_arrow()
1275 self.spin.update()
1276 self.assertTrue(success)
1277
1278 self._click_decrement_arrow()
1279 self.assertEqual(len(success), 2)
1280
1281 # testing postcommand removal
1282 self.spin['command'] = ''
1283 self.spin.update_idletasks()
1284 self._click_increment_arrow()
1285 self._click_decrement_arrow()
1286 self.spin.update()
1287 self.assertEqual(len(success), 2)
1288
1289 def test_configure_to(self):
1290 self.spin['from'] = 0

Callers

nothing calls this directly

Calls 7

assertTrueMethod · 0.80
update_idletasksMethod · 0.80
appendMethod · 0.45
updateMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected