summaryrefslogtreecommitdiff
path: root/pexpect/tests/test_missing_command.py
diff options
context:
space:
mode:
Diffstat (limited to 'pexpect/tests/test_missing_command.py')
-rwxr-xr-xpexpect/tests/test_missing_command.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/pexpect/tests/test_missing_command.py b/pexpect/tests/test_missing_command.py
new file mode 100755
index 0000000..39a0028
--- /dev/null
+++ b/pexpect/tests/test_missing_command.py
@@ -0,0 +1,17 @@
+import pexpect
+import unittest
+
+class MissingCommandTestCase (unittest.TestCase):
+ def testMissingCommand(self):
+ try:
+ i = pexpect.spawn ('ZXQYQZX')
+ except Exception:
+ pass
+ else:
+ fail('expected an Exception')
+
+if __name__ == '__main__':
+ unittest.main()
+
+suite = unittest.makeSuite(MissingCommandTestCase,'test')
+