Created
April 21, 2011 13:55
-
-
Save KushalP/934534 to your computer and use it in GitHub Desktop.
Testing status codes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def test_search_returns_useful_shell_status(): | |
| """ | |
| Searh returns a useful shell status code | |
| """ | |
| self.assertRaises(SystemExit, run_pip('search', 'pip'), 0) | |
| self.assertRaises(SystemExit, run_pip('search'), 1) | |
| self.assertRaises(SystemExit, run_pip('search', 'wysiwyg-test-name-package'), 23) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment