def test_content_can_be_a_html_component(self):
     link = Link('/y', Image('/x.jpg'))
     self.assertEquals('<a href="/y"><img src="/x.jpg"/></a>', link.as_html())
 def test_href_and_content_attributes_are_mandatory(self):
     link = Link('/y', 'x')
     self.assertEquals('<a href="/y">x</a>', link.as_html())