def to_xml(self,d): s = """<?xml version="1.0"?><results>""" + xmlify(sqlobject_to_strings(d)) + "</results>" return deunicodify(s)
def test_xmlify(self): assert xmlify(('a','b')) == '<a>b</a>' assert xmlify(1) == '1'