mirror of
https://github.com/FranP-code/public-apis.git
synced 2025-10-13 00:03:04 +00:00
Test get_host_from_link with invalid argument
This commit is contained in:
@@ -65,3 +65,6 @@ class TestValidateLinks(unittest.TestCase):
|
|||||||
self.assertNotIn('/', host)
|
self.assertNotIn('/', host)
|
||||||
self.assertNotIn('?', host)
|
self.assertNotIn('?', host)
|
||||||
self.assertNotIn('#', host)
|
self.assertNotIn('#', host)
|
||||||
|
|
||||||
|
with self.assertRaises(TypeError):
|
||||||
|
get_host_from_link()
|
||||||
|
|||||||
Reference in New Issue
Block a user