(self)
| 881 | self.assertRaises(TypeError, self.type2test(b' abc ').rstrip, 32) |
| 882 | |
| 883 | def test_center(self): |
| 884 | # Fill character can be either bytes or bytearray (issue 12380) |
| 885 | b = self.type2test(b'abc') |
| 886 | for fill_type in (bytes, bytearray): |
| 887 | self.assertEqual(b.center(7, fill_type(b'-')), |
| 888 | self.type2test(b'--abc--')) |
| 889 | |
| 890 | def test_ljust(self): |
| 891 | # Fill character can be either bytes or bytearray (issue 12380) |
nothing calls this directly
no test coverage detected