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

Method test_strip

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

Source from the content-addressed store, hash-verified

411
412 @bigmemtest(size=_2G, memuse=1)
413 def test_strip(self, size):
414 _ = self.from_latin1
415 SUBSTR = _(' abc def ghi ')
416 s = SUBSTR.rjust(size)
417 self.assertEqual(len(s), size)
418 self.assertEqual(s.strip(), SUBSTR.strip())
419 del s
420 s = SUBSTR.ljust(size)
421 self.assertEqual(len(s), size)
422 self.assertEqual(s.strip(), SUBSTR.strip())
423
424 def _test_swapcase(self, size):
425 _ = self.from_latin1

Callers

nothing calls this directly

Calls 5

_Function · 0.70
rjustMethod · 0.45
assertEqualMethod · 0.45
stripMethod · 0.45
ljustMethod · 0.45

Tested by

no test coverage detected