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

Method test_configure_orient

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

Source from the content-addressed store, hash-verified

613 return ttk.PanedWindow(self.root, **kwargs)
614
615 def test_configure_orient(self):
616 widget = self.create()
617 self.assertEqual(str(widget['orient']), 'vertical')
618 errmsg='attempt to change read-only option'
619 if get_tk_patchlevel(self.root) < (8, 6, 0, 'beta', 3):
620 errmsg='Attempt to change read-only option'
621 self.checkInvalidParam(widget, 'orient', 'horizontal',
622 errmsg=errmsg)
623 widget2 = self.create(orient='horizontal')
624 self.assertEqual(str(widget2['orient']), 'horizontal')
625
626 def test_add(self):
627 # attempt to add a child that is not a direct child of the paned window

Callers

nothing calls this directly

Calls 5

createMethod · 0.95
get_tk_patchlevelFunction · 0.90
strFunction · 0.85
checkInvalidParamMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected