Index: quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/tests/testUpgrade.py
===================================================================
--- quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/tests/testUpgrade.py	(revision 2555)
+++ quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/tests/testUpgrade.py	(revision 2601)
@@ -13,5 +13,4 @@
 from quintagroup.canonicalpath.interfaces import ICanonicalPath
 from quintagroup.canonicalpath.interfaces import ICanonicalLink
-from quintagroup.plonegooglesitemaps.content.newsextender import NewsExtender
 
 class TestUpgrade(TestCase):
@@ -31,8 +30,7 @@
         # Test upgrade steps
         upgrades = self.setup.listUpgrades(self.profile, show_old=True)
-        self.assertEqual(len(upgrades), 3)
+        self.assertEqual(len(upgrades), 2)
         self.assertEqual(upgrades[0]["title"].endswith("1.0 to 1.1"), True)
         self.assertEqual(upgrades[1]["title"].endswith("1.1 to 1.2"), True)
-        self.assertEqual(upgrades[2]["title"].endswith("1.2 to 1.3"), True)
 
     def test_upgradeSetupRegistration(self):
@@ -41,5 +39,4 @@
         self.assertEqual("quintagroup.plonegooglesitemaps:upgrade_1_0_to_1_1" in pids, True)
         self.assertEqual("quintagroup.plonegooglesitemaps:upgrade_1_1_to_1_2" in pids, True)
-        self.assertEqual("quintagroup.plonegooglesitemaps:upgrade_1_2_to_1_3" in pids, True)
 
     def test_step_1_0_to_1_1(self):
@@ -71,5 +68,5 @@
         if not "canonical_path" in catalog._catalog.names:
             catalog.addColumn("canonical_path")
-        # Upgrade to 1.2 versionb
+        # Upgrade to 1.2 version
         step = self.getUpgradeStep(2)
         if step is not None:
@@ -84,32 +81,4 @@
         self.assertNotEqual(ICanonicalPath(folder).canonical_path, fldr_cpath)
         self.assertEqual(ICanonicalLink(folder).canonical_link, fldr_clink)
-        # canonical_link brain must contains updated canonical_link data
-        brain = catalog(id="test_doc")[0]
-        self.assertEqual(brain.canonical_link, doc_clink)
-        brain = catalog(id="test_folder")[0]
-        self.assertEqual(brain.canonical_link, fldr_clink)
-
-    def test_step_1_2_to_1_3(self):
-        # Prepare testing data
-        cols = ["Language", "gsm_access", "gsm_genres", "gsm_stock"]
-        lsm = getSiteManager(self.portal)
-        catalog = self.portal.portal_catalog
-        # Remove tested columns, if its exists
-        [catalog.delColumn(col) for col in cols if col in catalog._catalog.names]
-        # Remove schema extender adapter from local component registry, if its exists
-        for r in tuple(lsm.registeredAdapters()):
-            if r.factory == NewsExtender:
-                lsm.unregisterAdapter(factory=r.factory, name=r.name,
-                    required=r.required, provided=r.provided)
-        # Upgrade to 1.3 version
-        step = self.getUpgradeStep(3)
-        if step is not None:
-            step.doStep(self.setup)
-        # Test if columns added to portal_catalog
-        for col in cols:
-            self.assertEqual(col in catalog._catalog.names, True)
-        # Test if schema extender adapter added into local component registry
-        factories = [r.factory for r in tuple(lsm.registeredAdapters())]
-        self.assertEqual(NewsExtender in factories, True)
 
     def testUpgradeCallOnQIReinstall(self):
@@ -124,5 +93,4 @@
             upgrades[1].handler = lambda st:called.append("1.0 to 1.1")
             upgrades[2].handler = lambda st:called.append("1.1 to 1.2")
-            upgrades[3].handler = lambda st:called.append("1.2 to 1.3")
             # Run reinstallation
             self.portal.portal_quickinstaller.reinstallProducts(products=config.PROJECTNAME)
@@ -130,13 +98,10 @@
             self.assertEqual("1.0 to 1.1" in called, True)
             self.assertEqual("1.1 to 1.2" in called, True)
-            self.assertEqual("1.2 to 1.3" in called, True)
         finally:
             # Restore original upgrade handlers
             upgrades[1].handler = gsm_upgrades.upgrade_1_0_to_1_1
             upgrades[2].handler = gsm_upgrades.upgrade_1_1_to_1_2
-            upgrades[3].handler = gsm_upgrades.upgrade_1_2_to_1_3
             self.setup.setLastVersionForProfile(self.profile, orig_ver)
 
-        
 
 def test_suite():
