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

Method test_configure_tabs

Lib/test/test_tkinter/test_widgets.py:734–744  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

732 self.checkEnumParam(widget, 'state', 'disabled', 'normal')
733
734 def test_configure_tabs(self):
735 widget = self.create()
736 self.checkParam(widget, 'tabs', (10.2, 20.7, '1i', '2i'))
737 self.checkParam(widget, 'tabs', '10.2 20.7 1i 2i',
738 expected=(10.2, 20.7, '1i', '2i')
739 if get_tk_patchlevel(self.root) >= (8, 6, 14)
740 else ('10.2', '20.7', '1i', '2i'))
741 self.checkParam(widget, 'tabs', '2c left 4c 6c center',
742 expected=('2c', 'left', '4c', '6c', 'center'))
743 self.checkInvalidParam(widget, 'tabs', 'spam',
744 errmsg=EXPECTED_SCREEN_DISTANCE_ERRMSG.format('spam'))
745
746 def test_configure_tabstyle(self):
747 widget = self.create()

Callers

nothing calls this directly

Calls 5

createMethod · 0.95
get_tk_patchlevelFunction · 0.90
checkParamMethod · 0.80
checkInvalidParamMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected