~netlandish/django-wiki

4c9f8ab28e8507e3cb598647b737f81c0f2ecf29 — Teury Diaz 5 years ago 88932e3
Update test_urlize.py

localhost test
1 files changed, 15 insertions(+), 1 deletions(-)

M tests/plugins/links/test_urlize.py
M tests/plugins/links/test_urlize.py => tests/plugins/links/test_urlize.py +15 -1
@@ 145,6 145,21 @@ FIXTURE_POSITIVE_MATCHES = [


FIXTURE_NEGATIVE_MATCHES = [
    # localhost as part of another word.
    (
        'localhosts',
        '<p>localhosts</p>'
    ),
    (
        'localhost', 
        '<p>localhost</p>'

    ),
    (
        'localhost:8000', 
        '<p>localhost:8000</p>'
    ),
   
    # Incomplete FQDNs.
    (
        'example.',


@@ 154,7 169,6 @@ FIXTURE_NEGATIVE_MATCHES = [
        '.example .com',
        '<p>.example .com</p>'
    ),

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