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

Method test_istitle

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected