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

Method test_istitle

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

Source from the content-addressed store, hash-verified

211
212 @bigmemtest(size=_2G, memuse=2)
213 def test_istitle(self, size):
214 _ = self.from_latin1
215 SUBSTR = _('123456')
216 s = _('').join([_('A'), _('a') * size, SUBSTR])
217 self.assertTrue(s.istitle())
218 s += _('A')
219 self.assertTrue(s.istitle())
220 s += _('aA')
221 self.assertFalse(s.istitle())
222
223 @bigmemtest(size=_2G, memuse=2)
224 def test_isupper(self, size):

Callers

nothing calls this directly

Calls 5

assertTrueMethod · 0.80
istitleMethod · 0.80
assertFalseMethod · 0.80
_Function · 0.70
joinMethod · 0.45

Tested by

no test coverage detected