Skip to content

Instantly share code, notes, and snippets.

@shantanuo
Forked from andy47/parse_conn_unittest.py
Last active August 29, 2015 14:16
Show Gist options
  • Save shantanuo/eba80c48f0977655d9e1 to your computer and use it in GitHub Desktop.
Save shantanuo/eba80c48f0977655d9e1 to your computer and use it in GitHub Desktop.
from parse_conn import parse_connection
import unittest
class InvalidInputs(unittest.TestCase):
def testNoAt(self):
"""parse_connection should raise an exception
for an invalid connection string"""
self.assertRaises(ValueError, parse_connection, 'invalid uri')
if __name__ == "__main__":
unittest.main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment