(self)
| 232 | |
| 233 | @requires_resource('console') |
| 234 | def test_ctrl_z(self): |
| 235 | with open('CONIN$', 'rb', buffering=0) as stdin: |
| 236 | source = '\xC4\x1A\r\n'.encode('utf-16-le') |
| 237 | expected = '\xC4'.encode('utf-8') |
| 238 | write_input(stdin, source) |
| 239 | a, b = stdin.read(1), stdin.readall() |
| 240 | self.assertEqual(expected[0:1], a) |
| 241 | self.assertEqual(expected[1:], b) |
| 242 | |
| 243 | if __name__ == "__main__": |
| 244 | unittest.main() |
nothing calls this directly
no test coverage detected