'Returns a parsed xml object of a history'

def history_as_xml_tree(self, show_deleted=False):

    self.visit_url(('/history?as_xml=True&show_deleted=%s' % show_deleted))
    xml = self.last_page()
    tree = ElementTree.fromstring(xml)
    return tree
