diff --git a/tests/test_connection.py b/tests/test_connection.py index eb80d4c4..a5fabf9f 100755 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -278,6 +278,9 @@ class ConnectionTests(ConnectingTestCase): dict(user='tester', password='secret', dbname='test'), "simple DSN parsed") + self.assertRaises(ProgrammingError, parse_dsn, + "dbname=test 2 user=tester password=secret") + self.assertEqual(parse_dsn("dbname='test 2' user=tester password=secret"), dict(user='tester', password='secret', dbname='test 2'), "DSN with quoting parsed")