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

Method test_rjust

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

Source from the content-addressed store, hash-verified

323
324 @bigmemtest(size=_2G + 10, memuse=1)
325 def test_rjust(self, size):
326 _ = self.from_latin1
327 SUBSTR = _(' abc def ghi')
328 s = SUBSTR.ljust(size)
329 self.assertTrue(s.startswith(SUBSTR + _(' ')))
330 self.assertEqual(len(s), size)
331 self.assertEqual(s.strip(), SUBSTR.strip())
332
333 @bigmemtest(size=_2G + 10, memuse=1)
334 def test_rstrip(self, size):

Callers

nothing calls this directly

Calls 6

assertTrueMethod · 0.80
_Function · 0.70
ljustMethod · 0.45
startswithMethod · 0.45
assertEqualMethod · 0.45
stripMethod · 0.45

Tested by

no test coverage detected