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

Method test_get

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

Source from the content-addressed store, hash-verified

236 self.assertEqual("", v.get())
237
238 def test_get(self):
239 v = StringVar(self.root, "abc", "name")
240 self.assertEqual("abc", v.get())
241 self.root.globalsetvar("name", "value")
242 self.assertEqual("value", v.get())
243
244 def test_get_null(self):
245 v = StringVar(self.root, "abc\x00def", "name")

Callers

nothing calls this directly

Calls 3

getMethod · 0.95
StringVarClass · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected