def test_tag_renders_correctly(self):
        render = lambda tpl: template.Template(
            tpl).render(template.Context({'request':None}))
        
        tpl = """{% load openid %}{% openid_form %}"""
       
        rendered = render(tpl)

        self.assertTrue('form' in rendered)
        
        tpl = """
	{% load openid %}
	{% openid_form "https://www.google.com/accounts/o8/id" "image/for/google.jpg" %}
	"""
        
        rendered = render(tpl)

        self.assertTrue('https://www.google.com/accounts/o8/id' in rendered)

        self.assertTrue('image/for/google.jpg' in rendered)
dataset/ETHPy150Open flashingpumpkin/django-socialregistration/socialregistration/contrib/openid/tests.py/TestTemplateTag.test_tag_renders_correctly/original