Exemplo n.º 1
0
class URLCheckTest(CheckTestCase):
    check = URLCheck()

    def setUp(self):
        super(URLCheckTest, self).setUp()
        url = 'https://weblate.org/'
        self.test_good_matching = (url, url, 'url')
        self.test_good_none = (url, url, 'url')
        self.test_good_flag = ('string', 'string', '')
        self.test_failure_1 = (url, 'https:weblate.org/', 'url')
        self.test_failure_2 = (url, 'weblate.org/', 'url')
        self.test_failure_3 = (url, 'weblate', 'url')
Exemplo n.º 2
0
class URLCheckTest(CheckTestCase):
    check = URLCheck()

    def setUp(self):
        super().setUp()
        url = "https://weblate.org/"
        self.test_good_matching = (url, url, "url")
        self.test_good_none = (url, url, "url")
        self.test_good_flag = ("string", "string", "")
        self.test_failure_1 = (url, "https:weblate.org/", "url")
        self.test_failure_2 = (url, "weblate.org/", "url")
        self.test_failure_3 = (url, "weblate", "url")