def to_html(self,d): return "<html><head><title>tasty</title><body>" + htmlify(sqlobject_to_strings(d)) + "</body>"
def test_htmlify(self): assert htmlify(('a','b')) == '<span class="a">b</span>' assert htmlify(1) == '1'