def test_invalid_url(self): """ Tests url_check given an invalid URL and checks output.""" url = "djfklsjfksjklfjsd.fsdjfsf" with self.assertRaises(phishingpage.UrlNotAvailable): phishingpage.url_check(url)
def test_valid_url(self): """ Tests url_check given a valid URL and checks output. """ url = "https://google.com" self.assertEqual(phishingpage.url_check(url), True, "Failed to check valid URL!")