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

Method test_configure_offset

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

Source from the content-addressed store, hash-verified

814 self.checkBooleanParam(widget, 'confine')
815
816 def test_configure_offset(self):
817 widget = self.create()
818 self.assertEqual(widget['offset'], '0,0')
819 self.checkParams(widget, 'offset',
820 'n', 'ne', 'e', 'se', 's', 'sw', 'w', 'nw', 'center')
821 self.checkParam(widget, 'offset', '10,20')
822 self.checkParam(widget, 'offset', '#5,6')
823 self.checkInvalidParam(widget, 'offset', 'spam')
824
825 def test_configure_scrollregion(self):
826 widget = self.create()

Callers

nothing calls this directly

Calls 5

createMethod · 0.95
checkParamsMethod · 0.80
checkParamMethod · 0.80
checkInvalidParamMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected