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

Method do_test

Lib/test/test_statistics.py:640–644  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

638 # that are expected to be found even if the overall error message changes.
639
640 def do_test(self, args):
641 actual_msg = NumericTestCase._make_std_err_msg(*args)
642 expected = self.generate_substrings(*args)
643 for substring in expected:
644 self.assertIn(substring, actual_msg)
645
646 def test_numerictestcase_is_testcase(self):
647 # Ensure that NumericTestCase actually is a TestCase.

Callers 2

Calls 3

generate_substringsMethod · 0.95
_make_std_err_msgMethod · 0.80
assertInMethod · 0.80

Tested by

no test coverage detected