Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Fix test_rel_has_nofollow test

Michel Ace07d20a8ce45a
diff --git a/tests/test_utils_misc/__init__.py b/tests/test_utils_misc/__init__.py
index 67367dbfb..b0d7acd12 100644
--- a/tests/test_utils_misc/__init__.py
+++ b/tests/test_utils_misc/__init__.py
@@ -163,10 +163,9 @@ class UtilsMiscTestCase(unittest.TestCase):
assert os.environ.get('some_test_environ') == 'test'
def test_rel_has_nofollow(self):
- assert os.environ.get('some_test_environ') is None
- asert rel_has_nofollow('ugc nofollow') == True
- asert rel_has_nofollow('ugc,nofollow') == True
- asert rel_has_nofollow('ugc') == False
+ assert rel_has_nofollow('ugc nofollow') == True
+ assert rel_has_nofollow('ugc,nofollow') == True
+ assert rel_has_nofollow('ugc') == False
if __name__ == "__main__":