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

Method test_normalize_test_name

Lib/test/test_regrtest.py:2466–2475  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2464 '3 hour 1 sec')
2465
2466 def test_normalize_test_name(self):
2467 normalize = normalize_test_name
2468 self.assertEqual(normalize('test_access (test.test_os.FileTests.test_access)'),
2469 'test_access')
2470 self.assertEqual(normalize('setUpClass (test.test_os.ChownFileTests)', is_error=True),
2471 'ChownFileTests')
2472 self.assertEqual(normalize('test_success (test.test_bug.ExampleTests.test_success)', is_error=True),
2473 'test_success')
2474 self.assertIsNone(normalize('setUpModule (test.test_x)', is_error=True))
2475 self.assertIsNone(normalize('tearDownModule (test.test_module)', is_error=True))
2476
2477 def test_format_resources(self):
2478 format_resources = utils.format_resources

Callers

nothing calls this directly

Calls 3

assertIsNoneMethod · 0.80
normalizeFunction · 0.50
assertEqualMethod · 0.45

Tested by

no test coverage detected