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

Method check

Lib/test/test_tcl.py:333–336  ·  view source on GitHub ↗
(expr, expected)

Source from the content-addressed store, hash-verified

331 tcl.call('set', 'a', 3)
332 tcl.call('set', 'b', 6)
333 def check(expr, expected):
334 result = tcl.exprstring(expr)
335 self.assertEqual(result, expected)
336 self.assertIsInstance(result, str)
337
338 self.assertRaises(TypeError, tcl.exprstring)
339 self.assertRaises(TypeError, tcl.exprstring, '8.2', '+6')

Callers 3

setUpClassMethod · 0.45
verify_tabnanny_checkMethod · 0.45

Calls 9

strFunction · 0.85
eqFunction · 0.85
assertIsInstanceMethod · 0.80
assertNotIsInstanceMethod · 0.80
wantobjectsMethod · 0.80
assertInMethod · 0.80
joinFunction · 0.50
assertEqualMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected