Exemple #1
0
 def test_addon_type_fails_when_addon_is_not_in_results(self, testsetup):
     addons_xml = AddOnsAPI(testsetup)
     try:
         Assert.raises(AttributeError,
                       addons_xml.get_addon_type_id("Firepug"))
     except AssertionError:
         pass
Exemple #2
0
 def test_addon_version_number_fails_when_addon_is_not_in_results(
         self, testsetup):
     addons_xml = AddOnsAPI(testsetup)
     Assert.raises(AttributeError,
                   addons_xml.get_addon_version_number("Firepug"))
Exemple #3
0
 def test_first_addon_fails_when_addon_is_not_in_results(self, testsetup):
     addons_xml = AddOnsAPI(testsetup)
     bad_xml = AddOnsAPI("Firepug")
     #try:
     Assert.raises(AttributeError,
                   addons_xml)  #self.bad_xml.get_name_of_first_addon())
Exemple #4
0
 def test_addon_is_not_in_search_results(self, testsetup):
     addons_xml = AddOnsAPI(testsetup)
     Assert.raises(AttributeError,
                   addons_xml.get_xml_for_single_addon("Firepug"))
Exemple #5
0
 def test_get_version_number(self, testsetup):
     addons_xml = AddOnsAPI(testsetup)
     Assert.equal(
         "1.1.6",
         addons_xml.get_addon_version_number(
             "Illuminations for Developers for Firebug"))
Exemple #6
0
 def test_get_addon_type_name(self, testsetup):
     addons_xml = AddOnsAPI(testsetup)
     Assert.equal("Extension", addons_xml.get_addon_type_name(
         "Firebug"))  #("Firefox 3 theme for Firefox 4"))