forked from indymedia/epicyon
Tidying
parent
565bf041e2
commit
e93071af5d
4
tests.py
4
tests.py
|
@ -1370,10 +1370,10 @@ def testActorParsing():
|
||||||
assert nickname=='othernick'
|
assert nickname=='othernick'
|
||||||
|
|
||||||
def testWebLinks():
|
def testWebLinks():
|
||||||
|
print('testWebLinks')
|
||||||
exampleText='This post has a web links https://somesite.net\n\nAnd some other text'
|
exampleText='This post has a web links https://somesite.net\n\nAnd some other text'
|
||||||
linkedText=addWebLinks(exampleText)
|
linkedText=addWebLinks(exampleText)
|
||||||
print(exampleText)
|
assert '<a href="https://somesite.net" rel="nofollow noopener" target="_blank"><span class="invisible">https://</span><span class="ellipsis">somesite.net</span></a' in linkedText
|
||||||
print(linkedText)
|
|
||||||
|
|
||||||
def runAllTests():
|
def runAllTests():
|
||||||
print('Running tests...')
|
print('Running tests...')
|
||||||
|
|
Loading…
Reference in New Issue