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

Method test_get

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

Source from the content-addressed store, hash-verified

276 self.assertEqual(0.0, v.get())
277
278 def test_get(self):
279 v = DoubleVar(self.root, 1.23, "name")
280 self.assertAlmostEqual(1.23, v.get())
281 self.root.globalsetvar("name", "3.45")
282 self.assertAlmostEqual(3.45, v.get())
283
284 def test_get_from_int(self):
285 v = DoubleVar(self.root, 1.23, "name")

Callers

nothing calls this directly

Calls 3

getMethod · 0.95
DoubleVarClass · 0.90
assertAlmostEqualMethod · 0.45

Tested by

no test coverage detected