Beispiel #1
0
 def test_render_settings(self):
     html = render_analytics_widget(None, None)
     self.assert_(u"_gaq.push(['_setAccount', 'UA-1234567-8']);" not in html)
     settings()["kms_analytics.tracking_id"] = "UA-1234567-8"
     html = render_analytics_widget(None, None)
     self.assert_(u"_gaq.push(['_setAccount', 'UA-1234567-8']);" in html)
Beispiel #2
0
 def test_render_widget(self):
     self.assert_(render_analytics_widget(None, None).startswith("<script"))