示例#1
0
 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))
示例#2
0
 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))
示例#3
0
 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))
示例#4
0
 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))