(self)
| 784 | self.assertEqual(buf.getvalue(), b'abcdef') |
| 785 | |
| 786 | def test_writelines_userlist(self): |
| 787 | l = UserList(['ab', 'cd', 'ef']) |
| 788 | buf = self.BytesIO() |
| 789 | txt = self.TextIOWrapper(buf, encoding="utf-8") |
| 790 | txt.writelines(l) |
| 791 | txt.flush() |
| 792 | self.assertEqual(buf.getvalue(), b'abcdef') |
| 793 | |
| 794 | def test_writelines_error(self): |
| 795 | txt = self.TextIOWrapper(self.BytesIO(), encoding="utf-8") |
nothing calls this directly
no test coverage detected