mirror of https://github.com/scrapy/scrapy.git
Fix test_rel_has_nofollow test
This commit is contained in:
parent
18b6f30a73
commit
07d20a8ce4
|
|
@ -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__":
|
||||
|
|
|
|||
Loading…
Reference in New Issue