def test_from_element(self): self.assertEquals( type(String.from_element(etree.fromstringlist("<a>b</a>"))), type(String) )