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