Skip to content

Instantly share code, notes, and snippets.

@andy47
Created June 29, 2013 23:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andy47/5893180 to your computer and use it in GitHub Desktop.
Save andy47/5893180 to your computer and use it in GitHub Desktop.
py.test test case for our example function
from parse_conn import parse_connection
import py.test
def test_not_at():
py.test.raises(ValueError, parse_connection, 'invalid uri')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment