summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-07-10 21:33:03 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-07-10 21:33:03 +0000
commit55edd4ce95a0bd2f92482474b866debb3a29b3cf (patch)
treedeb33b8dc1339fd0ab8bd0a087a933a17b186c87 /test
parentd89b81a1d9dd85e3dce3512643e9a077d60a2d44 (diff)
downloadsqlalchemy-55edd4ce95a0bd2f92482474b866debb3a29b3cf.tar.gz
adjument to regexp for parsing courtesy Barry Warsaw
Diffstat (limited to 'test')
-rw-r--r--test/engine/parseconnect.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/engine/parseconnect.py b/test/engine/parseconnect.py
index 43389c272..cb77d96d0 100644
--- a/test/engine/parseconnect.py
+++ b/test/engine/parseconnect.py
@@ -20,11 +20,16 @@ class ParseConnectTest(PersistTest):
'dbtype:///E:/work/src/LEM/db/hello.db',
'dbtype:///E:/work/src/LEM/db/hello.db?foo=bar&hoho=lala',
'dbtype://',
- 'dbtype://username:password@/db'
+ 'dbtype://username:password@/db',
+ 'dbtype:////usr/local/mailman/lists/_xtest@example.com/members.db'
):
u = url.make_url(text)
print u, text
print "username=", u.username, "password=", u.password, "database=", u.database, "host=", u.host
+ assert u.drivername == 'dbtype'
+ assert u.username == 'username' or u.username is None
+ assert u.password == 'password' or u.password is None
+ assert u.host == 'hostspec' or u.host == '127.0.0.1' or (not u.host)
assert str(u) == text