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

Method test_ljust

Lib/test/test_bytes.py:977–982  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

975 self.type2test(b'--abc--'))
976
977 def test_ljust(self):
978 # Fill character can be either bytes or bytearray (issue 12380)
979 b = self.type2test(b'abc')
980 for fill_type in (bytes, bytearray):
981 self.assertEqual(b.ljust(7, fill_type(b'-')),
982 self.type2test(b'abc----'))
983
984 def test_rjust(self):
985 # Fill character can be either bytes or bytearray (issue 12380)

Callers

nothing calls this directly

Calls 3

type2testMethod · 0.80
assertEqualMethod · 0.45
ljustMethod · 0.45

Tested by

no test coverage detected