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

Method _test_title

Lib/test/test_bigmem.py:435–441  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

433 self.assertEqual(s[-sublen * 3:], SUBSTR.swapcase() * 3)
434
435 def _test_title(self, size):
436 _ = self.from_latin1
437 SUBSTR = _('SpaaHAaaAaham')
438 s = SUBSTR * (size // len(SUBSTR) + 2)
439 s = s.title()
440 self.assertTrue(s.startswith((SUBSTR * 3).title()))
441 self.assertTrue(s.endswith(SUBSTR.lower() * 3))
442
443 @bigmemtest(size=_2G, memuse=2)
444 def test_translate(self, size):

Callers 3

test_titleMethod · 0.80
test_titleMethod · 0.80
test_titleMethod · 0.80

Calls 6

assertTrueMethod · 0.80
_Function · 0.70
titleMethod · 0.45
startswithMethod · 0.45
endswithMethod · 0.45
lowerMethod · 0.45

Tested by

no test coverage detected