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

Method checkCommandParam

Lib/test/test_tkinter/widget_tests.py:121–126  ·  view source on GitHub ↗
(self, widget, name)

Source from the content-addressed store, hash-verified

119 errmsg='bad cursor spec "spam"')
120
121 def checkCommandParam(self, widget, name):
122 def command(*args):
123 pass
124 widget[name] = command
125 self.assertTrue(widget[name])
126 self.checkParams(widget, name, '')
127
128 def checkEnumParam(self, widget, name, *values,
129 errmsg=None, allow_empty=False, fullname=None,

Calls 2

checkParamsMethod · 0.95
assertTrueMethod · 0.80

Tested by

no test coverage detected