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

Method test_isupper

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 8

chrFunction · 0.85
lenFunction · 0.85
assertTrueMethod · 0.80
assertFalseMethod · 0.80
_Function · 0.70
joinMethod · 0.45
islowerMethod · 0.45
isupperMethod · 0.45

Tested by

no test coverage detected