mirror of https://github.com/scrapy/scrapy.git
Add more rel_has_nofollow tests
This commit is contained in:
parent
295f0e2bf5
commit
ce9d6c658b
|
|
@ -166,6 +166,10 @@ class UtilsMiscTestCase(unittest.TestCase):
|
|||
assert rel_has_nofollow('ugc nofollow') is True
|
||||
assert rel_has_nofollow('ugc,nofollow') is True
|
||||
assert rel_has_nofollow('ugc') is False
|
||||
assert rel_has_nofollow('nofollow') is True
|
||||
assert rel_has_nofollow('nofollowfoo') is False
|
||||
assert rel_has_nofollow('foonofollow') is False
|
||||
assert rel_has_nofollow('ugc, , nofollow') is True
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Reference in New Issue