コード例 #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!")