diff options
| author | Thomas Kluyver <takowl@gmail.com> | 2013-09-25 16:25:47 -0700 |
|---|---|---|
| committer | Thomas Kluyver <takowl@gmail.com> | 2013-09-25 16:25:47 -0700 |
| commit | c6166a02a7f28cfbac9d2bd4488c1b354f641da6 (patch) | |
| tree | 018df775cba40b70c33b623cacf6ddd7fd76a815 /tests/test_interact.py | |
| parent | c7a180abfdd941563ff442337ebfef1867d88337 (diff) | |
| download | pexpect-c6166a02a7f28cfbac9d2bd4488c1b354f641da6.tar.gz | |
Test interact method on spawnu class
Diffstat (limited to 'tests/test_interact.py')
| -rwxr-xr-x | tests/test_interact.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/test_interact.py b/tests/test_interact.py index 291f79f..e850478 100755 --- a/tests/test_interact.py +++ b/tests/test_interact.py @@ -63,25 +63,24 @@ class InteractTestCase (PexpectTestCase.PexpectTestCase): p.expect (b'Hello') p.expect (b'there') p.expect (b'Mr. Python') - assert p.isalive() == True, p.isalive() + assert p.isalive() p.sendeof () p.expect (pexpect.EOF) - assert p.isalive() == False, p.isalive() + assert not p.isalive() assert p.exitstatus == 0, (p.exitstatus, p.before) - # XXX TODO: interact_unicode.py def test_interact_unicode (self): - p = pexpect.spawnu('%s interact.py' % (self.PYTHONBIN,)) + p = pexpect.spawnu('%s interact_unicode.py' % (self.PYTHONBIN,)) p.sendline (u'Hello') p.sendline (u'theré') p.sendline (u'Mr. Pyþon') p.expect (u'Hello') p.expect (u'theré') p.expect (u'Mr. Pyþon') - assert p.isalive() == True, p.isalive() + assert p.isalive() p.sendeof () p.expect (pexpect.EOF) - assert p.isalive() == False, p.isalive() + assert not p.isalive() assert p.exitstatus == 0, (p.exitstatus, p.before) |
