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

Method test_name_and_value

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

Source from the content-addressed store, hash-verified

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")
44 self.assertEqual("sample string", v.get())
45 self.assertEqual("varname", str(v))
46
47 def test___del__(self):
48 self.assertFalse(self.info_exists("varname"))

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected