def assert_managed(self, pre, post): resource = etree.fromstring(pre) common.manage(resource) assert_xml_equal(post, etree_to_str(resource))
def assert_managed(pre, post): resource = etree.fromstring(pre) common.manage(resource, IdProvider(resource)) assert_xml_equal(post, etree_to_str(resource))