(self)
| 63 | self.assert_writes([b"hello world\n", b"goodbye."]) |
| 64 | |
| 65 | def test_manual_flush(self): |
| 66 | self.log.write("Hello") |
| 67 | |
| 68 | self.assert_writes([]) |
| 69 | |
| 70 | self.log.write(" world\nHere for a while...\nGoodbye") |
| 71 | self.assert_writes([b"Hello world\n", b"Here for a while...\n"]) |
| 72 | |
| 73 | self.log.write(" world\nHello again") |
| 74 | self.assert_writes([b"Goodbye world\n"]) |
| 75 | |
| 76 | self.log.flush() |
| 77 | self.assert_writes([b"Hello again"]) |
| 78 | |
| 79 | def test_non_ascii(self): |
| 80 | # Spanish |
nothing calls this directly
no test coverage detected