MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_ljust

Method test_ljust

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

Source from the content-addressed store, hash-verified

888 self.type2test(b'--abc--'))
889
890 def test_ljust(self):
891 # Fill character can be either bytes or bytearray (issue 12380)
892 b = self.type2test(b'abc')
893 for fill_type in (bytes, bytearray):
894 self.assertEqual(b.ljust(7, fill_type(b'-')),
895 self.type2test(b'abc----'))
896
897 def test_rjust(self):
898 # 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