Skip to content

Instantly share code, notes, and snippets.

@KushalP
Created April 21, 2011 13:55
Show Gist options
  • Select an option

  • Save KushalP/934534 to your computer and use it in GitHub Desktop.

Select an option

Save KushalP/934534 to your computer and use it in GitHub Desktop.
Testing status codes
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