One more parse_dsn test for unquoted space

This commit is contained in:
Oleksandr Shulgin 2015-06-01 15:18:03 +02:00
parent 6a2f21aa14
commit 3200cd77bf

View File

@ -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")