[Zope3-checkins] CVS: Zope3/src/zope/app/rdb/tests - test_dsnparser.py:1.4
Steve Alexander
steve@cat-box.net
Mon, 9 Jun 2003 11:02:46 -0400
Update of /cvs-repository/Zope3/src/zope/app/rdb/tests
In directory cvs.zope.org:/tmp/cvs-serv29482/src/zope/app/rdb/tests
Modified Files:
test_dsnparser.py
Log Message:
Removed another XXX comment.
Made code handle passwords that contain a ':' character.
=== Zope3/src/zope/app/rdb/tests/test_dsnparser.py 1.3 => 1.4 ===
--- Zope3/src/zope/app/rdb/tests/test_dsnparser.py:1.3 Mon Jun 9 10:58:35 2003
+++ Zope3/src/zope/app/rdb/tests/test_dsnparser.py Mon Jun 9 11:02:46 2003
@@ -39,6 +39,12 @@
'password': 'muster', 'host': '', 'port': ''}
self.assertEqual(result, parseDSN(dsn))
+ def testPasswordWithColon(self):
+ dsn = 'dbi://mike:before:after/test'
+ result = {'parameters': {}, 'dbname': 'test', 'username': 'mike',
+ 'password': 'before:after', 'host': '', 'port': ''}
+ self.assertEqual(result, parseDSN(dsn))
+
def testUserPasswordAndParams(self):
dsn = 'dbi://mike:muster/test;param1=value1;param2=value2'
result = {'parameters': {'param1': 'value1', 'param2': 'value2'},