(self)
| 3444 | self.assertEqual(buf.getvalue(), b'abcdef') |
| 3445 | |
| 3446 | def test_writelines_userlist(self): |
| 3447 | l = UserList(['ab', 'cd', 'ef']) |
| 3448 | buf = self.BytesIO() |
| 3449 | txt = self.TextIOWrapper(buf, encoding="utf-8") |
| 3450 | txt.writelines(l) |
| 3451 | txt.flush() |
| 3452 | self.assertEqual(buf.getvalue(), b'abcdef') |
| 3453 | |
| 3454 | def test_writelines_error(self): |
| 3455 | txt = self.TextIOWrapper(self.BytesIO(), encoding="utf-8") |
nothing calls this directly
no test coverage detected