(self)
| 776 | self.assertEqual(reads, "A"*127+"\nB") |
| 777 | |
| 778 | def test_writelines(self): |
| 779 | l = ['ab', 'cd', 'ef'] |
| 780 | buf = self.BytesIO() |
| 781 | txt = self.TextIOWrapper(buf, encoding="utf-8") |
| 782 | txt.writelines(l) |
| 783 | txt.flush() |
| 784 | self.assertEqual(buf.getvalue(), b'abcdef') |
| 785 | |
| 786 | def test_writelines_userlist(self): |
| 787 | l = UserList(['ab', 'cd', 'ef']) |
nothing calls this directly
no test coverage detected