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

Method test_default

Lib/test/test_tkinter/test_variables.py:37–40  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35 return self.root.getboolean(self.root.call("info", "exists", *args))
36
37 def test_default(self):
38 v = Variable(self.root)
39 self.assertEqual("", v.get())
40 self.assertRegex(str(v), r"^PY_VAR(\d+)$")
41
42 def test_name_and_value(self):
43 v = Variable(self.root, "sample string", "varname")

Callers

nothing calls this directly

Calls 5

getMethod · 0.95
VariableClass · 0.90
strFunction · 0.85
assertRegexMethod · 0.80
assertEqualMethod · 0.45

Tested by

no test coverage detected