Пример #1
0
    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)
Пример #2
0
    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)
Пример #3
0
    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!")
Пример #4
0
    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!")