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

Method test_isspace

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

Source from the content-addressed store, hash-verified

201
202 @bigmemtest(size=_2G, memuse=2)
203 def test_isspace(self, size):
204 _ = self.from_latin1
205 whitespace = _(' \f\n\r\t\v')
206 repeats = size // len(whitespace) + 2
207 s = whitespace * repeats
208 self.assertTrue(s.isspace())
209 s += _('j')
210 self.assertFalse(s.isspace())
211
212 @bigmemtest(size=_2G, memuse=2)
213 def test_istitle(self, size):

Callers

nothing calls this directly

Calls 4

assertTrueMethod · 0.80
isspaceMethod · 0.80
assertFalseMethod · 0.80
_Function · 0.70

Tested by

no test coverage detected