summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-08-22 18:58:01 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-08-22 18:58:01 +0000
commita8d1aecfabe288dcfce3c01bfd87a5a6aff3683c (patch)
tree506df1e9413dfcf96e475e9c668cf8bc52907283 /test
parent3003239bebcc545a865888ded899199a99faa72c (diff)
downloadsqlalchemy-a8d1aecfabe288dcfce3c01bfd87a5a6aff3683c.tar.gz
- urls support escaped characters in passwords [ticket:281]
Diffstat (limited to 'test')
-rw-r--r--test/engine/parseconnect.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/engine/parseconnect.py b/test/engine/parseconnect.py
index cb77d96d0..9465af684 100644
--- a/test/engine/parseconnect.py
+++ b/test/engine/parseconnect.py
@@ -21,14 +21,15 @@ class ParseConnectTest(PersistTest):
'dbtype:///E:/work/src/LEM/db/hello.db?foo=bar&hoho=lala',
'dbtype://',
'dbtype://username:password@/db',
- 'dbtype:////usr/local/mailman/lists/_xtest@example.com/members.db'
+ 'dbtype:////usr/local/mailman/lists/_xtest@example.com/members.db',
+ 'dbtype://username:apples%2Foranges@hostspec/mydatabase',
):
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.password == 'password' or u.password == 'apples/oranges' or u.password is None
assert u.host == 'hostspec' or u.host == '127.0.0.1' or (not u.host)
assert str(u) == text