Test get_host_from_link with invalid argument

This commit is contained in:
Matheus Felipe 2022-01-12 01:30:08 -03:00
parent ef8c4f04e5
commit a707c4b89d
No known key found for this signature in database
GPG key ID: AA785C523274872F

View file

@ -65,3 +65,6 @@ class TestValidateLinks(unittest.TestCase):
self.assertNotIn('/', host)
self.assertNotIn('?', host)
self.assertNotIn('#', host)
with self.assertRaises(TypeError):
get_host_from_link()