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

Method test_tclobj_to_py

Lib/test/test_ttk_textonly.py:348–354  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

346 "{} 1} ")
347
348 def test_tclobj_to_py(self):
349 self.assertEqual(
350 ttk._tclobj_to_py((MockStateSpec('a', 'b'), 'val')),
351 [('a', 'b', 'val')])
352 self.assertEqual(
353 ttk._tclobj_to_py([MockTclObj('1'), 2, MockTclObj('3m')]),
354 [1, 2, '3m'])
355
356
357 def test_list_from_statespec(self):

Callers

nothing calls this directly

Calls 3

MockStateSpecClass · 0.85
MockTclObjClass · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected