Esempio n. 1
0
    def test_2_getReportURL(self):
        """
        Tests for getReportURL
        Expecting proper URL with Bug numbers
        """
        url = 'https://wiki.mozilla.org/Template:CURRENT_CYCLE'
        cycle_span = getTemplateValue(url)
        unlanded_beta_url = getReportURL("approval-mozilla-beta", cycle_span)
        unlanded_esr_url = getReportURL("approval-mozilla-esr" + esr_version,
                                        cycle_span)

        url = unlanded_beta_url.split('=')
        assert isinstance(int(url[1].split(',')[0]), (int))
        url = unlanded_esr_url.split('=')
        assert isinstance(int(url[1].split(',')[0]), (int))
    def test_getReportURL(self):
        """
        Expecting proper URL with Bug numbers
        """
        url = 'https://wiki.mozilla.org/Template:CURRENT_CYCLE'
        cycle_span = getTemplateValue(url)
        unlanded_beta_url = getReportURL("approval-mozilla-beta",
                                         cycle_span)
        unlanded_aurora_url = getReportURL("approval-mozilla-aurora",
                                           cycle_span)
        unlanded_esr38_url = getReportURL("approval-mozilla-esr38",
                                          cycle_span)

        unlanded_beta_url = unlanded_beta_url.split('=')
        assert ',' in unlanded_beta_url[1]
        unlanded_aurora_url = unlanded_aurora_url.split('=')
        assert ',' in unlanded_aurora_url[1]
        unlanded_esr38_url = unlanded_esr38_url.split('=')
        assert ',' in unlanded_esr38_url[1]
    def test_2_getReportURL(self):
        """
        Tests for getReportURL
        Expecting proper URL with Bug numbers
        """
        url = 'https://wiki.mozilla.org/Template:CURRENT_CYCLE'
        cycle_span = getTemplateValue(url)
        unlanded_beta_url = getReportURL("approval-mozilla-beta",
                                         cycle_span)
        unlanded_aurora_url = getReportURL("approval-mozilla-aurora",
                                           cycle_span)
        unlanded_esr38_url = getReportURL("approval-mozilla-esr38",
                                          cycle_span)

        url = unlanded_beta_url.split('=')
        assert isinstance(int(url[1].split(',')[0]), (int))
        url = unlanded_aurora_url.split('=')
        assert isinstance(int(url[1].split(',')[0]), (int))
        url = unlanded_esr38_url.split('=')
        assert isinstance(int(url[1].split(',')[0]), (int))