mirror of https://gitlab.com/bashrc2/epicyon
Line length
parent
a4f9d57294
commit
bd77f9f403
7
tests.py
7
tests.py
|
@ -2313,7 +2313,12 @@ def testHashtagRuleTree():
|
|||
|
||||
def testGetNewswireTags():
|
||||
print('testGetNewswireTags')
|
||||
rssDescription='<img src="https://somesite/someimage.jpg" class="misc-stuff" alt="#ExcitingHashtag" srcset="https://somesite/someimage.jpg" sizes="(max-width: 864px) 100vw, 864px" />Compelling description with #ExcitingHashtag, which is being posted in #BoringForum'
|
||||
rssDescription='<img src="https://somesite/someimage.jpg" ' + \
|
||||
'class="misc-stuff" alt="#ExcitingHashtag" ' + \
|
||||
'srcset="https://somesite/someimage.jpg" ' + \
|
||||
'sizes="(max-width: 864px) 100vw, 864px" />' + \
|
||||
'Compelling description with #ExcitingHashtag, which is ' + \
|
||||
'being posted in #BoringForum'
|
||||
tags = getNewswireTags(rssDescription, 10)
|
||||
assert len(tags) == 2
|
||||
assert '#BoringForum' in tags
|
||||
|
|
Loading…
Reference in New Issue