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

Method check_against

Lib/test/test_ttk_textonly.py:44–48  ·  view source on GitHub ↗
(fmt_opts, result)

Source from the content-addressed store, hash-verified

42
43 def test_format_optdict(self):
44 def check_against(fmt_opts, result):
45 for i in range(0, len(fmt_opts), 2):
46 self.assertEqual(result.pop(fmt_opts[i]), fmt_opts[i + 1])
47 if result:
48 self.fail("result still got elements: %s" % result)
49
50 # passing an empty dict should return an empty object (tuple here)
51 self.assertFalse(ttk._format_optdict({}))

Callers

nothing calls this directly

Calls 3

assertEqualMethod · 0.45
popMethod · 0.45
failMethod · 0.45

Tested by

no test coverage detected