Doctest for util.username_password_from_url
commit27b660ac29cec419c1f1bd1cb690eef37021c664
authorThomas Perl <thp@perli.net>
Tue, 24 Mar 2009 19:44:37 +0000 (24 20:44 +0100)
committerThomas Perl <thp@perli.net>
Tue, 24 Mar 2009 19:44:37 +0000 (24 20:44 +0100)
tree6056dbd1913d8c78c0a647555caa929defe618c9
parent3aab8c1b87c4a274fd1bc311e29a8e8410f467af
Doctest for util.username_password_from_url

Add doctests for the username/password from URL
function and raise a ValueError when the input
data is invalid (wrong type or format - see below).

Had a look at RFC1738 (Section 3.1) how username
and password are specified in URLs. According to
that RFC, "@", ":" and "/" have to be encoded in
the username and password field.
src/gpodder/gui.py
src/gpodder/util.py