def testGoogleMapView(self): self.folder.invokeFactory('Topic', 'topic') map_view = self.folder.restrictedTraverse('@@maps_googlemaps_view') self.failUnless(IMapView.providedBy(map_view)) self.failUnless(verifyObject(IMapView, map_view)) map_view = self.folder.topic.restrictedTraverse('@@maps_googlemaps_view') self.failUnless(IMapView.providedBy(map_view)) self.failUnless(verifyObject(IMapView, map_view))
def testGoogleMapView(self): self.folder.invokeFactory('Topic', 'topic') map_view = self.folder.restrictedTraverse('@@maps_googlemaps_view') self.failUnless(IMapView.providedBy(map_view)) self.failUnless(verifyObject(IMapView, map_view)) map_view = self.folder.topic.restrictedTraverse( '@@maps_googlemaps_view') self.failUnless(IMapView.providedBy(map_view)) self.failUnless(verifyObject(IMapView, map_view))
def testGoogleMapView(self): self.folder.invokeFactory('GeoLocation', 'mylocation') map_view = self.folder.mylocation.restrictedTraverse( '@@maps_googlemaps_view') self.failUnless(IMapView.providedBy(map_view)) self.failUnless(verifyObject(IMapView, map_view))
def testGoogleMapView(self): self.folder.invokeFactory("GeoLocation", "mylocation") map_view = self.folder.mylocation.restrictedTraverse("@@maps_googlemaps_view") self.failUnless(IMapView.providedBy(map_view)) self.failUnless(verifyObject(IMapView, map_view))