mirror of
https://github.com/public-apis/public-apis.git
synced 2025-05-12 00:26:45 +02:00
Test get_host_from_link with invalid argument
This commit is contained in:
parent
ef8c4f04e5
commit
a707c4b89d
1 changed files with 3 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue