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

Method test_islower

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

Source from the content-addressed store, hash-verified

190
191 @bigmemtest(size=_2G, memuse=2)
192 def test_islower(self, size):
193 _ = self.from_latin1
194 chars = _(''.join(
195 chr(c) for c in range(255) if not chr(c).isupper()))
196 repeats = size // len(chars) + 2
197 s = chars * repeats
198 self.assertTrue(s.islower())
199 s += _('A')
200 self.assertFalse(s.islower())
201
202 @bigmemtest(size=_2G, memuse=2)
203 def test_isspace(self, size):

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected