MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_normalize_test_name

Method test_normalize_test_name

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

Source from the content-addressed store, hash-verified

2431 '3 hour 1 sec')
2432
2433 def test_normalize_test_name(self):
2434 normalize = normalize_test_name
2435 self.assertEqual(normalize('test_access (test.test_os.FileTests.test_access)'),
2436 'test_access')
2437 self.assertEqual(normalize('setUpClass (test.test_os.ChownFileTests)', is_error=True),
2438 'ChownFileTests')
2439 self.assertEqual(normalize('test_success (test.test_bug.ExampleTests.test_success)', is_error=True),
2440 'test_success')
2441 self.assertIsNone(normalize('setUpModule (test.test_x)', is_error=True))
2442 self.assertIsNone(normalize('tearDownModule (test.test_module)', is_error=True))
2443
2444 def test_format_resources(self):
2445 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