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

Method test_isupper

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

Source from the content-addressed store, hash-verified

222
223 @bigmemtest(size=_2G, memuse=2)
224 def test_isupper(self, size):
225 _ = self.from_latin1
226 chars = _(''.join(
227 chr(c) for c in range(255) if not chr(c).islower()))
228 repeats = size // len(chars) + 2
229 s = chars * repeats
230 self.assertTrue(s.isupper())
231 s += _('a')
232 self.assertFalse(s.isupper())
233
234 @bigmemtest(size=_2G, memuse=2)
235 def test_join(self, size):

Callers

nothing calls this directly

Calls 6

islowerMethod · 0.80
assertTrueMethod · 0.80
isupperMethod · 0.80
assertFalseMethod · 0.80
_Function · 0.70
joinMethod · 0.45

Tested by

no test coverage detected