Exemplo n.º 1
0
 def test_render_settings_with_name(self):
     result = render_profile_widget(None, None, name='mywidget')
     assert result['user'] == u'pylons'
     settings()['kotti_twitter.profile_widget.mywidget.user'] = '******'
     result = render_profile_widget(None, None, name='mywidget')
     assert result['user'] == u'dnouri'
Exemplo n.º 2
0
 def test_render(self):
     assert u'tweets_background' in render_profile_widget(None, None)
Exemplo n.º 3
0
 def test_render_settings_with_name(self):
     html = render_profile_widget(None, None, name='mywidget')
     self.assert_(u'dnouri' not in html)
     settings()['kotti_twitter.profile_widget.mywidget.user'] = '******' 
     html = render_profile_widget(None, None, name='mywidget')
     self.assert_(u'dnouri' in html)
Exemplo n.º 4
0
 def test_render(self):
     self.assert_(render_profile_widget(None, None).startswith('<script'))
Exemplo n.º 5
0
 def test_render_settings_with_name(self):
     result = render_profile_widget(None, None, name="mywidget")
     assert result["user"] == u"pylons"
     settings()["kotti_twitter.profile_widget.mywidget.user"] = "******"
     result = render_profile_widget(None, None, name="mywidget")
     assert result["user"] == u"dnouri"
Exemplo n.º 6
0
 def test_render(self):
     assert u"tweets_background" in render_profile_widget(None, None)