From 4c9f8ab28e8507e3cb598647b737f81c0f2ecf29 Mon Sep 17 00:00:00 2001 From: Teury Diaz Date: Sat, 21 Sep 2019 16:27:22 -0400 Subject: [PATCH] Update test_urlize.py localhost test --- tests/plugins/links/test_urlize.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/tests/plugins/links/test_urlize.py b/tests/plugins/links/test_urlize.py index 18321a34..3ca9b268 100644 --- a/tests/plugins/links/test_urlize.py +++ b/tests/plugins/links/test_urlize.py @@ -145,6 +145,21 @@ FIXTURE_POSITIVE_MATCHES = [ FIXTURE_NEGATIVE_MATCHES = [ + # localhost as part of another word. + ( + 'localhosts', + '

localhosts

' + ), + ( + 'localhost', + '

localhost

' + + ), + ( + 'localhost:8000', + '

localhost:8000

' + ), + # Incomplete FQDNs. ( 'example.', @@ -154,7 +169,6 @@ FIXTURE_NEGATIVE_MATCHES = [ '.example .com', '

.example .com

' ), - # Invalid FQDNs. ( 'example-.com', -- 2.45.2