mirror of
				https://github.com/psycopg/psycopg2.git
				synced 2025-10-31 07:47:30 +03:00 
			
		
		
		
	One more parse_dsn test for unquoted space
This commit is contained in:
		
							parent
							
								
									6a2f21aa14
								
							
						
					
					
						commit
						3200cd77bf
					
				|  | @ -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") | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user