Beispiel #1
0
 def test_gevent_html_safe(self):
     from django.contrib.gis.maps.google.overlays import GEvent
     event = GEvent('click', 'function() {location.href = "http://www.google.com"}')
     self.assertTrue(hasattr(GEvent, '__html__'))
     self.assertEqual(force_text(event), event.__html__())
Beispiel #2
0
 def test_gevent_html_safe(self):
     event = GEvent('click',
                    'function() {location.href = "http://www.google.com"}')
     self.assertTrue(hasattr(GEvent, '__html__'))
     self.assertEqual(force_text(event), event.__html__())
Beispiel #3
0
 def test_gevent_html_safe(self):
     from django.contrib.gis.maps.google.overlays import GEvent
     event = GEvent('click',
                    'function() {location.href = "http://www.google.com"}')
     self.assertTrue(hasattr(GEvent, '__html__'))
     self.assertEqual(force_text(event), event.__html__())
Beispiel #4
0
 def test_gevent_html_safe(self):
     event = GEvent('click', 'function() {location.href = "http://www.google.com"}')
     self.assertTrue(hasattr(GEvent, '__html__'))
     self.assertEqual(force_text(event), event.__html__())