Scrapy, a fast high-level web crawling & scraping framework for Python.
Add more rel_has_nofollow tests
Michel Acece9d6c658b21
diff --git a/tests/test_utils_misc/__init__.py b/tests/test_utils_misc/__init__.pyindex 69f593ccd..47d73a2dd 100644--- a/tests/test_utils_misc/__init__.py+++ b/tests/test_utils_misc/__init__.py@@ -166,6 +166,10 @@ class UtilsMiscTestCase(unittest.TestCase):assert rel_has_nofollow('ugc nofollow') is Trueassert rel_has_nofollow('ugc,nofollow') is Trueassert 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 Trueif __name__ == "__main__":