コード例 #1
0
    def test_that_description_text_is_correct(self, mozwebqa):
        """Test for Litmus 15321."""
        #browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_description = firebug_page.description

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

        Assert.equal(browser_description.replace('\n', ''), xml_description.replace('\n', ''))
コード例 #2
0
    def test_that_description_text_is_correct(self, mozwebqa):
        """Test for Litmus 15321."""
        #browser
        firebug_page = Details(mozwebqa, self.firebug)
        browser_description = firebug_page.description

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

        Assert.equal(browser_description.replace('\n', ''), HTMLParser().unescape(xml_description.replace('\n', '')))