| 318 |
| 319 |
| 320 |
| 321 |
| 322 |
| 323 |
| 324 |
| 325 |
| 326 |
| 327 |
| 328 | |
def test_channel_file(self): |
channel = self.gw.remote_exec(""" |
f = channel.makefile() |
print >>f, "hello world" |
f.close() |
channel.send(42) |
""") |
first = channel.receive() + channel.receive() |
assert first.strip() == 'hello world' |
-> second = channel.receive() |
assert second == 42 | |