Fix test_rel_has_nofollow test

This commit is contained in:
Michel Ace 2021-08-10 21:21:43 +02:00 committed by GitHub
parent 18b6f30a73
commit 07d20a8ce4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -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__":