Ignore:
Timestamp:
Jun 16, 2010 1:35:31 PM (14 years ago)
Author:
mylan
Message:

#206: move mobile sitemap code preparation into base module

File:
1 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/branches/test_refactoring/quintagroup/plonegooglesitemaps/tests/testMobileSitemaps.py

    r2534 r2535  
    22from DateTime import DateTime 
    33 
    4 from zope.interface import Interface, alsoProvides 
     4from zope.interface import alsoProvides 
    55from zope.component import queryMultiAdapter 
    66from zope.component import getSiteManager, getGlobalSiteManager 
     
    1313from quintagroup.plonegooglesitemaps.browser.mobilesitemapview import MobileSitemapView 
    1414 
    15 class IMobileMarker(Interface): 
    16     """Marker interface for mobile objects""" 
    17  
    1815class TestMobileSitemapsXML(FunctionalTestCase): 
    1916 
    2017    def afterSetUp(self): 
    2118        super(TestMobileSitemapsXML, self).afterSetUp() 
    22         # patch mobile sitemap view 
    23         self.orig_mobile_ifaces = mobilesitemapview.MOBILE_INTERFACES 
    24         mobilesitemapview.MOBILE_INTERFACES = [IMobileMarker.__identifier__,] 
    25           # Create mobile sitemaps 
     19        self.patchMobile() 
    2620        _createObjectByType("Sitemap", self.portal, id="mobile-sitemap.xml", 
    2721                            sitemapType="mobile", portalTypes=("Document",)) 
     
    3529        self.workflow.doActionFor(self.my_mobile, "publish") 
    3630        self.reParse() 
    37  
    38     def beforeTearDown(self): 
    39         mobilesitemapview.MOBILE_INTERFACES = self.orig_mobile_ifaces 
    40         super(TestMobileSitemapsXML, self).beforeTearDown()  
    4131 
    4232    def reParse(self): 
Note: See TracChangeset for help on using the changeset viewer.