def test_that_compatible_applications_equal(self, mozwebqa):

        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        firebug_page.expand_version_information()
        browser_compatible_applications = firebug_page.compatible_applications

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_compatible_applications = addons_xml.get_compatible_applications()
        name = xml_compatible_applications[0]
        min_version = xml_compatible_applications[1]
        max_version = xml_compatible_applications[2]

        # E.g.: Works with Firefox 1.0
        meta_compat_prefix = 'Works with %s %s ' % (name, min_version)
        # E.g.: Works with Firefox 1.0 and later
        meta_compat_abbrev = meta_compat_prefix + 'and later'
        # E.g.: Works with Firefox 1.0 - 16.0a1
        meta_compat_full = "%s- %s" % (meta_compat_prefix, max_version)

        assert (browser_compatible_applications == meta_compat_full or
                browser_compatible_applications == meta_compat_abbrev or
                browser_compatible_applications.startswith(meta_compat_prefix)
                ), "Listed compat. versions don't match versions listed in API."
예제 #2
0
    def test_that_compatible_applications_equal(self, mozwebqa):
        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        firebug_page.expand_version_information()
        browser_compatible_applications = firebug_page.compatible_applications

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_compatible_applications = addons_xml.get_compatible_applications()
        name = xml_compatible_applications[0]
        min_version = xml_compatible_applications[1]
        max_version = xml_compatible_applications[2]

        # E.g.: Works with Firefox 1.0
        meta_compat_prefix = 'Works with %s %s ' % (name, min_version)
        # E.g.: Works with Firefox 1.0 and later
        meta_compat_abbrev = meta_compat_prefix + 'and later'
        # E.g.: Works with Firefox 1.0 - 16.0a1
        meta_compat_full = "%s- %s" % (meta_compat_prefix, max_version)

        assert (
            browser_compatible_applications == meta_compat_full
            or browser_compatible_applications == meta_compat_abbrev
            or browser_compatible_applications.startswith(meta_compat_prefix)
        ), "Listed compat. versions don't match versions listed in API."
    def test_that_icon_is_correct(self, mozwebqa):
        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_icon = firebug_page.icon_url

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_icon = addons_xml.get_icon_url()

        assert browser_icon == xml_icon
    def test_that_firebug_summary_is_correct(self, mozwebqa):
        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_summary = firebug_page.summary

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_summary = addons_xml.get_addon_summary()

        assert xml_summary == browser_summary
    def test_that_daily_users_in_api_equals_daily_users_in_details_page(self, mozwebqa):
        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_daily_users = firebug_page.daily_users_number

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_daily_users = addons_xml.get_daily_users()

        assert browser_daily_users == xml_daily_users
    def test_that_reviews_in_api_equals_reviews_in_details_page(self, mozwebqa):
        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_reviews = firebug_page.total_reviews_count

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_reviews = addons_xml.get_reviews_count()

        assert browser_reviews == xml_reviews
    def test_that_icon_is_correct(self, base_url, selenium):
        # browser
        firebug_page = Details(base_url, selenium, self.firebug)
        browser_icon = firebug_page.icon_url

        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_icon = addons_xml.get_icon_url()

        assert browser_icon == xml_icon
    def test_that_support_url_is_correct(self, mozwebqa):
        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_support_url = firebug_page.support_url

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_support_url = addons_xml.get_support_url()

        assert browser_support_url == xml_support_url
    def test_that_daily_users_in_api_equals_daily_users_in_details_page(self, base_url, selenium):
        # browser
        firebug_page = Details(base_url, selenium, self.firebug)
        browser_daily_users = firebug_page.daily_users_number

        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_daily_users = addons_xml.get_daily_users()

        assert browser_daily_users == xml_daily_users
    def test_that_rating_in_api_equals_rating_in_details_page(self, base_url, selenium):
        # browser
        firebug_page = Details(base_url, selenium, self.firebug)
        browser_rating = firebug_page.rating

        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_rating = addons_xml.get_rating()

        assert browser_rating == xml_rating
    def test_that_firebug_summary_is_correct(self, base_url, selenium):
        # browser
        firebug_page = Details(base_url, selenium, self.firebug)
        browser_summary = firebug_page.summary

        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_summary = addons_xml.get_addon_summary()

        assert xml_summary == browser_summary
    def test_that_description_text_is_correct(self, base_url, selenium):
        # browser
        firebug_page = Details(base_url, selenium, self.firebug)
        browser_description = firebug_page.description

        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_description = addons_xml.get_addon_description()

        assert browser_description.replace('\n', '') == xml_description.replace('\n', '')
    def test_that_reviews_in_api_equals_reviews_in_details_page(self, base_url, selenium):
        # browser
        firebug_page = Details(base_url, selenium, self.firebug)
        browser_reviews = firebug_page.total_reviews_count

        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_reviews = addons_xml.get_reviews_count()

        assert browser_reviews == xml_reviews
    def test_that_home_page_in_api_equals_home_page_in_details_page(self, base_url, selenium):
        # browser
        firebug_page = Details(base_url, selenium, self.firebug)
        browser_home_page = urlparse.unquote(firebug_page.website)

        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_home_page = addons_xml.get_home_page()

        assert xml_home_page in browser_home_page
    def test_that_rating_in_api_equals_rating_in_details_page(self, base_url, selenium):
        # browser
        firebug_page = Details(base_url, selenium, self.firebug)
        browser_rating = firebug_page.rating

        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_rating = addons_xml.get_rating()

        assert browser_rating == xml_rating
    def test_that_firebug_summary_is_correct(self, base_url, selenium):
        # browser
        firebug_page = Details(base_url, selenium, self.firebug)
        browser_summary = firebug_page.summary

        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_summary = addons_xml.get_addon_summary()

        assert xml_summary == browser_summary
예제 #17
0
    def test_that_rating_in_api_equals_rating_in_details_page(self, mozwebqa):
        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_rating = firebug_page.rating

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_rating = addons_xml.get_rating()

        assert browser_rating == xml_rating
    def test_that_description_text_is_correct(self, base_url, selenium):
        # browser
        firebug_page = Details(base_url, selenium, self.firebug)
        browser_description = firebug_page.description

        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_description = addons_xml.get_addon_description()

        assert browser_description.replace('\n', '') == xml_description.replace('\n', '')
예제 #19
0
    def test_that_firebug_summary_is_correct(self, mozwebqa):
        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_summary = firebug_page.summary

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_summary = addons_xml.get_addon_summary()

        assert xml_summary == browser_summary
    def test_that_home_page_in_api_equals_home_page_in_details_page(self, base_url, selenium):
        # browser
        firebug_page = Details(base_url, selenium, self.firebug)
        browser_home_page = urlparse.unquote(firebug_page.website)

        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_home_page = addons_xml.get_home_page()

        assert xml_home_page in browser_home_page
    def test_that_rating_in_api_equals_rating_in_details_page(self, mozwebqa):
        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_rating = firebug_page.rating

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_rating = addons_xml.get_rating()

        assert browser_rating == xml_rating
    def test_that_icon_is_correct(self, base_url, selenium):
        # browser
        firebug_page = Details(base_url, selenium, self.firebug)
        browser_icon = firebug_page.icon_url

        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_icon = addons_xml.get_icon_url()

        assert browser_icon == xml_icon
    def test_that_daily_users_in_api_equals_daily_users_in_details_page(self, base_url, selenium):
        # browser
        firebug_page = Details(base_url, selenium, self.firebug)
        browser_daily_users = firebug_page.daily_users_number

        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_daily_users = addons_xml.get_daily_users()

        assert browser_daily_users == xml_daily_users
예제 #24
0
    def test_that_icon_is_correct(self, mozwebqa):
        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_icon = firebug_page.icon_url

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_icon = addons_xml.get_icon_url()

        assert browser_icon == xml_icon
예제 #25
0
    def test_that_support_url_is_correct(self, mozwebqa):
        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_support_url = firebug_page.support_url

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_support_url = addons_xml.get_support_url()

        assert browser_support_url == xml_support_url
    def test_that_reviews_in_api_equals_reviews_in_details_page(self, base_url, selenium):
        # browser
        firebug_page = Details(base_url, selenium, self.firebug)
        browser_reviews = firebug_page.total_reviews_count

        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_reviews = addons_xml.get_reviews_count()

        assert browser_reviews == xml_reviews
    def test_that_learn_more_link_is_correct(self, base_url, selenium):
        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        learn_more_url = addons_xml.get_learn_more_url()

        # browser
        details_page = Details(base_url, selenium, self.firebug)
        details_page.get_url(learn_more_url)

        assert self.firebug in details_page.page_title
    def test_that_learn_more_link_is_correct(self, base_url, selenium):
        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        learn_more_url = addons_xml.get_learn_more_url()

        # browser
        details_page = Details(base_url, selenium, self.firebug)
        details_page.get_url(learn_more_url)

        assert self.firebug in details_page.page_title
    def test_that_firebug_devs_comments_is_correct(self, mozwebqa):
        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        firebug_page.expand_devs_comments()
        browser_devs_comments = firebug_page.devs_comments_message

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_devs_comments = addons_xml.get_devs_comments()

        assert xml_devs_comments == browser_devs_comments
예제 #30
0
    def test_that_daily_users_in_api_equals_daily_users_in_details_page(
            self, mozwebqa):
        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_daily_users = firebug_page.daily_users_number

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_daily_users = addons_xml.get_daily_users()

        assert browser_daily_users == xml_daily_users
예제 #31
0
    def test_that_firebug_devs_comments_is_correct(self, mozwebqa):
        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        firebug_page.expand_devs_comments()
        browser_devs_comments = firebug_page.devs_comments_message

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_devs_comments = addons_xml.get_devs_comments()

        assert xml_devs_comments == browser_devs_comments
    def test_that_firebug_devs_comments_is_correct(self, base_url, selenium):
        # browser
        firebug_page = Details(base_url, selenium, self.firebug)
        firebug_page.expand_devs_comments()
        browser_devs_comments = firebug_page.devs_comments_message

        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_devs_comments = addons_xml.get_devs_comments()

        assert xml_devs_comments == browser_devs_comments
    def test_that_home_page_in_api_equals_home_page_in_details_page(self, mozwebqa):

        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_home_page = urlparse.unquote(firebug_page.website)

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_home_page = addons_xml.get_home_page()

        Assert.contains(xml_home_page, browser_home_page)
    def test_that_learn_more_link_is_correct(self, mozwebqa):

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        learn_more_url = addons_xml.get_learn_more_url()

        # browser
        details_page = Details(mozwebqa, self.firebug)
        details_page.get_url(learn_more_url)

        Assert.contains(self.firebug, details_page.page_title)
    def test_that_description_text_is_correct(self, mozwebqa):
        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_description = firebug_page.description

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_description = addons_xml.get_addon_description()

        Assert.equal(browser_description.replace('\n', ''),
                     xml_description.replace('\n', ''))
예제 #36
0
    def test_that_reviews_in_api_equals_reviews_in_details_page(
            self, mozwebqa):
        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_reviews = firebug_page.total_reviews_count

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_reviews = addons_xml.get_reviews_count()

        assert browser_reviews == xml_reviews
    def test_that_learn_more_link_is_correct(self, mozwebqa):

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        learn_more_url = addons_xml.get_learn_more_url()

        # browser
        details_page = Details(mozwebqa, self.firebug)
        details_page.get_url(learn_more_url)

        Assert.contains(self.firebug, details_page.page_title)
    def test_that_firebug_devs_comments_is_correct(self, base_url, selenium):
        # browser
        firebug_page = Details(base_url, selenium, self.firebug)
        firebug_page.expand_devs_comments()
        browser_devs_comments = firebug_page.devs_comments_message

        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_devs_comments = addons_xml.get_devs_comments()

        assert xml_devs_comments == browser_devs_comments
    def test_that_addon_number_of_total_downloads_is_correct(self, base_url, selenium):
        # browser
        firebug_page = Details(base_url, selenium, self.firebug)
        statistics_page = firebug_page.click_view_statistics()
        browser_downloads = statistics_page.total_downloads_number

        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_downloads = addons_xml.get_total_downloads()

        assert browser_downloads == xml_downloads
    def test_that_addon_number_of_total_downloads_is_correct(self, base_url, selenium):
        # browser
        firebug_page = Details(base_url, selenium, self.firebug)
        statistics_page = firebug_page.click_view_statistics()
        browser_downloads = statistics_page.total_downloads_number

        # api
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_downloads = addons_xml.get_total_downloads()

        assert browser_downloads == xml_downloads
    def test_that_reviews_in_api_equals_reviews_in_details_page(self, mozwebqa):
        """Test for Litmus 15330."""

        #browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_reviews = firebug_page.total_reviews_count

        #api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_reviews = addons_xml.get_reviews_count()

        Assert.equal(browser_reviews, xml_reviews)
    def test_that_daily_users_in_api_equals_daily_users_in_details_page(self, mozwebqa):
        """Test for Litmus 15333."""

        #browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_daily_users = firebug_page.daily_users_number

        #api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_daily_users = addons_xml.get_daily_users()

        Assert.equal(browser_daily_users, xml_daily_users)
    def test_that_firebug_summary_is_correct(self, mozwebqa):
        """Test for Litmus 15320."""

        #browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_summary = firebug_page.summary

        #api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_summary = addons_xml.get_addon_summary()

        Assert.equal(xml_summary, browser_summary)
    def test_that_addon_number_of_total_downloads_is_correct(self, mozwebqa):

        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        statistics_page = firebug_page.click_view_statistics()
        browser_downloads = statistics_page.total_downloads_number

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_downloads = addons_xml.get_total_downloads()

        Assert.equal(browser_downloads, xml_downloads)
    def test_that_home_page_in_api_equals_home_page_in_details_page(
            self, mozwebqa):

        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_home_page = urlparse.unquote(firebug_page.website)

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_home_page = addons_xml.get_home_page()

        Assert.contains(xml_home_page, browser_home_page)
    def test_that_addon_number_of_total_downloads_is_correct(self, mozwebqa):

        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        statistics_page = firebug_page.click_view_statistics()
        browser_downloads = statistics_page.total_downloads_number

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_downloads = addons_xml.get_total_downloads()

        Assert.equal(browser_downloads, xml_downloads)
    def test_that_rating_in_api_equals_rating_in_details_page(self, mozwebqa):
        """Test for Litmus 15325."""

        #browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_rating = firebug_page.rating

        #api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_rating = addons_xml.get_rating()

        Assert.equal(browser_rating, xml_rating)
    def test_that_description_text_is_correct(self, mozwebqa):
        # browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_description = firebug_page.description

        # api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_description = addons_xml.get_addon_description()

        Assert.equal(
            browser_description.replace('\n', ''),
            xml_description.replace('\n', ''))
    def test_that_support_url_is_correct(self, mozwebqa):
        """Test for Litmus 15337."""

        #browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_support_url = firebug_page.support_url

        #api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_support_url = addons_xml.get_support_url()

        Assert.equal(browser_support_url, xml_support_url)
    def test_that_firebug_devs_comments_is_correct(self, mozwebqa):
        """Test for Litmus 15329."""

        #browser
        firebug_page = Details(mozwebqa, self.firebug)
        firebug_page.expand_devs_comments()
        browser_devs_comments = firebug_page.devs_comments_message

        #api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_devs_comments = addons_xml.get_devs_comments()

        Assert.equal(xml_devs_comments, browser_devs_comments)
    def test_that_icon_is_correct(self, mozwebqa):
        """Test for Litmus 15322."""

        #browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_icon = firebug_page.icon_url

        #api
        addons_xml = AddonsAPI(mozwebqa, self.firebug)

        xml_icon = addons_xml.get_icon_url()

        Assert.equal(browser_icon, xml_icon)
    def test_that_firebug_authors_is_correct(self, mozwebqa):

        # get authors from browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_authors = firebug_page.authors

        # get authors from xml
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_authors = addons_xml.get_list_of_addon_author_names()

        # check that both lists have the same number of authors
        Assert.equal(len(browser_authors), len(xml_authors))

        # cross check both lists with each other
        for i in range(len(xml_authors)):
            Assert.equal(xml_authors[i], browser_authors[i])
    def test_that_firebug_authors_is_correct(self, base_url, selenium):

        # get authors from browser
        firebug_page = Details(base_url, selenium, self.firebug)
        browser_authors = firebug_page.authors

        # get authors from xml
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_authors = addons_xml.get_list_of_addon_author_names()

        # check that both lists have the same number of authors
        assert len(browser_authors) == len(xml_authors)

        # cross check both lists with each other
        for i in range(len(xml_authors)):
            assert xml_authors[i] == browser_authors[i]
    def test_that_firebug_authors_is_correct(self, base_url, selenium):

        # get authors from browser
        firebug_page = Details(base_url, selenium, self.firebug)
        browser_authors = firebug_page.authors

        # get authors from xml
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_authors = addons_xml.get_list_of_addon_author_names()

        # check that both lists have the same number of authors
        assert len(browser_authors) == len(xml_authors)

        # cross check both lists with each other
        for i in range(len(xml_authors)):
            assert xml_authors[i] == browser_authors[i]
    def test_that_firebug_images_is_correct(self, base_url, selenium):

        # get images links from browser
        firebug_page = Details(base_url, selenium, self.firebug)
        browser_images = [t.source for t in firebug_page.previews.thumbnails]

        # get images links from xml
        addons_xml = AddonsAPI(base_url, self.firebug)
        xml_images = addons_xml.get_list_of_addon_images_links()

        # check that both lists have the same number of images
        assert len(browser_images) == len(xml_images)

        # cross check both lists with each other
        for i in range(len(xml_images)):
            assert re.sub('src=api(&|&)', '', xml_images[i]) == browser_images[i]
예제 #56
0
    def test_that_firebug_images_is_correct(self, mozwebqa):

        # get images links from browser
        firebug_page = Details(mozwebqa, self.firebug)
        images_count = firebug_page.previewer.image_count
        browser_images = []
        for i in range(images_count):
            browser_images.append(firebug_page.previewer.image_link(i))

        # get images links from xml
        addons_xml = AddonsAPI(mozwebqa, self.firebug)
        xml_images = addons_xml.get_list_of_addon_images_links()

        # check that both lists have the same number of images
        assert len(browser_images) == len(xml_images)

        # cross check both lists with each other
        for i in range(len(xml_images)):
            assert re.sub('src=api(&|&)', '',
                          xml_images[i]) == browser_images[i]
예제 #57
0
 def test_that_firebug_addon_type_name_is_extension(self, mozwebqa):
     response = AddonsAPI(mozwebqa, 'Firebug')
     Assert.equal("Extension".lower(), response.get_addon_type())
예제 #58
0
 def test_that_firebug_addon_type_id_is_1(self, mozwebqa):
     response = AddonsAPI(mozwebqa, 'Firebug')
     Assert.equal(1, response.get_addon_type_id())
예제 #59
0
 def test_that_firebug_status_id_is_4_and_fully_reviewed(self, mozwebqa):
     response = AddonsAPI(mozwebqa, 'Firebug')
     Assert.equal(4, response.get_addon_status_id())
     Assert.equal("fully reviewed".lower(), response.get_addon_status())
예제 #60
0
 def test_that_firebug_has_install_link(self, mozwebqa):
     response = AddonsAPI(mozwebqa, 'Firebug')
     Assert.contains("fx.xpi?src=api", response.get_install_link())