

def test_rfc1738_password(self):
    u = url.make_url('dbtype://user:pass word + other%3Awords@host/dbname')
    eq_(u.password, 'pass word + other:words')
    eq_(str(self), 'dbtype://user:pass word + other%3Awords@host/dbname')
    u = url.make_url('dbtype://username:apples%2Foranges@hostspec/database')
    eq_(u.password, 'apples/oranges')
    eq_(str(u), 'dbtype://username:apples%2Foranges@hostspec/database')
    u = url.make_url('dbtype://username:apples%40oranges%40%40@hostspec/database')
    eq_(u.password, 'apples@oranges@@')
    eq_(str(u), 'dbtype://username:apples%40oranges%40%40@hostspec/database')
    u = url.make_url('dbtype://username%40:@hostspec/database')
    eq_(u.password, '')
    eq_(u.username, 'username@')
    eq_(str(u), 'dbtype://username%40:@hostspec/database')
    u = url.make_url('dbtype://username:pass%2Fword@hostspec/database')
    eq_(u.password, 'pass/word')
    eq_(str(u), 'dbtype://username:pass%2Fword@hostspec/database')

dataset/ETHPy150Open zzzeek/sqlalchemy/test/engine/test_parseconnect.py ParseConnectTest.test_rfc1738_password/VarMisuse@32/70 `u`->`self`