Example #1
0
File: tests.py Project: ATNC/django
 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__())
Example #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__())
Example #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__())
Example #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__())