Esempio n. 1
0
 def test_render_settings(self):
     html = render_widget_javascript(None, None)
     self.assert_(u"username: '******'," not in html)
     settings()['username'] = '******'
     html = render_widget_javascript(None, None)
     self.assert_(u"username: '******'," in html)
Esempio n. 2
0
 def test_render_widget_javascript(self):
     self.assert_(render_widget_javascript(None, None).startswith('<script'))