def test_create_tag_without_content_and_without_attributes(self):
     self.assertEquals('<x></x>', ComponentHtml.tag('x', ''))
 def test_clazz_attribute_is_converted_to_class_attribute(self):
     self.assertEquals('<x class="b">y</x>', ComponentHtml.tag('x', 'y', clazz='b'))
 def test_creation_ignore_null_attributes(self):
     self.assertEquals('<x></x>', ComponentHtml.tag('x', '', a=None))
 def test_create_tag_with_content_and_with_attributes(self):
     self.assertEquals('<x a="b">y</x>', ComponentHtml.tag('x', 'y', a='b'))
     self.assertEquals('<x a="b" c="d">y</x>', ComponentHtml.tag('x', 'y', a='b', c='d'))