summaryrefslogtreecommitdiff
path: root/pexpect/tests/test_missing_command.py
blob: 88b36fbfd2bb922c97b044cddbec2f0385dc2c46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python
import pexpect
import unittest
import PexpectTestCase

class MissingCommandTestCase (PexpectTestCase.PexpectTestCase):
    def testMissingCommand(self):
        try:
            i = pexpect.spawn ('ZXQYQZX')
        except Exception:
            pass
        else:
            self.fail('Expected an Exception.')
    
if __name__ == '__main__':
    unittest.main()

suite = unittest.makeSuite(MissingCommandTestCase,'test')