write a character and return it in return.
(self)
| 146 | assert child.exitstatus == 0 |
| 147 | |
| 148 | def test_write(self): |
| 149 | " write a character and return it in return. " |
| 150 | child = pexpect.spawn('cat', echo=False) |
| 151 | child.write('a') |
| 152 | child.write('\r') |
| 153 | self.assertEqual(child.readline(), b'a\r\n') |
| 154 | |
| 155 | def test_writelines(self): |
| 156 | " spawn.writelines() " |