Skip to content

Commit

Permalink
Merge 5ae0867 into 2e5e1ea
Browse files Browse the repository at this point in the history
  • Loading branch information
muffl0n committed Sep 6, 2017
2 parents 2e5e1ea + 5ae0867 commit 316ffcd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion fs/opener/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Registry(object):
:\/\/
(?:
(?:(.*?)@(.*?))
(?:(.*)@(.*?))
|(.*?)
)
Expand Down
10 changes: 10 additions & 0 deletions tests/test_opener.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,16 @@ def test_parse_credentials(self):
)
self.assertEqual(expected, parsed)

parsed = opener.parse('ftp://user@ftp.example.org:password@proxy')
expected = opener.registry.ParseResult(
'ftp',
'user@ftp.example.org',
'password',
'proxy',
None
)
self.assertEqual(expected, parsed)

def test_parse_path(self):
parsed = opener.parse('osfs://foo/bar!example.txt')
expected = opener.registry.ParseResult(
Expand Down

0 comments on commit 316ffcd

Please sign in to comment.