(self)
| 3436 | self.assertEqual(reads, "A"*127+"\nB") |
| 3437 | |
| 3438 | def test_writelines(self): |
| 3439 | l = ['ab', 'cd', 'ef'] |
| 3440 | buf = self.BytesIO() |
| 3441 | txt = self.TextIOWrapper(buf, encoding="utf-8") |
| 3442 | txt.writelines(l) |
| 3443 | txt.flush() |
| 3444 | self.assertEqual(buf.getvalue(), b'abcdef') |
| 3445 | |
| 3446 | def test_writelines_userlist(self): |
| 3447 | l = UserList(['ab', 'cd', 'ef']) |
nothing calls this directly
no test coverage detected