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

Method test_configure_wrap

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

Source from the content-addressed store, hash-verified

1340 self.assertEqual(len(value), 1)
1341
1342 def test_configure_wrap(self):
1343 self.spin['to'] = 10
1344 self.spin['from'] = 1
1345 self.spin.set(1)
1346 self.spin['wrap'] = True
1347 self.spin.update()
1348
1349 self._click_decrement_arrow()
1350 self.assertEqual(self.spin.get(), '10')
1351
1352 self._click_increment_arrow()
1353 self.assertEqual(self.spin.get(), '1')
1354
1355 self.spin['wrap'] = False
1356 self.spin.update()
1357
1358 self._click_decrement_arrow()
1359 self.assertEqual(self.spin.get(), '1')
1360
1361 def test_configure_values(self):
1362 self.assertEqual(self.spin['values'], '')

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected