Separate parse_dsn test in a test case of their own

This commit is contained in:
Daniele Varrazzo 2015-10-01 11:52:42 +01:00
parent d1af12187c
commit d3bbd19ccb

View File

@ -307,6 +307,8 @@ class ConnectionTests(ConnectingTestCase):
self.assert_(c.closed, "connection failed so it must be closed")
self.assert_('foobar' not in c.dsn, "password was not obscured")
class ParseDsnTestCase(ConnectingTestCase):
def test_parse_dsn(self):
from psycopg2 import ProgrammingError
from psycopg2.extensions import parse_dsn