File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,12 @@ def setUp(self):
28
28
29
29
# General Tests ------------------------------------------------------------
30
30
# --------------------------------------------------------------------------
31
+ def test_urls (self ):
32
+ """Confirm that # in a URL works along with ,"""
33
+ result = self .parser .parse (u'big url: http://blah.com:8080/path/to/here?p=1&q=abc,def#posn2 #ahashtag' )
34
+ self .assertEqual (result .urls , [u'http://blah.com:8080/path/to/here?p=1&q=abc,def#posn2' ])
35
+ self .assertEqual (result .tags , [u'ahashtag' ])
36
+
31
37
def test_all_not_allow_amp_without_question (self ):
32
38
result = self .parser .parse (u'Check out: http://www.github.com/test&@username' )
33
39
self .assertEqual (result .html , u'Check out: <a href="http://www.github.com/test">http://www.github.com/test</a>&<a href="http://twitter.com/username">@username</a>' )
You can’t perform that action at this time.
0 commit comments