summaryrefslogtreecommitdiff
path: root/tests/test_expect.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_expect.py')
-rwxr-xr-xtests/test_expect.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_expect.py b/tests/test_expect.py
index dcf059b..ec55d43 100755
--- a/tests/test_expect.py
+++ b/tests/test_expect.py
@@ -400,6 +400,14 @@ class ExpectTestCase (PexpectTestCase.PexpectTestCase):
else:
self.fail ('Expected an EOF exception.')
+ def test_buffer_interface(self):
+ p = pexpect.spawn('cat', timeout=5)
+ p.sendline (b'Hello')
+ p.expect (b'Hello')
+ assert len(p.buffer)
+ p.buffer = b'Testing'
+ p.sendeof ()
+
def _before_after(self, p):
p.timeout = 5