示例#1
0
 def assert_disabled(self, pre, post):
     resource = etree.fromstring(pre)
     common.disable(resource)
     assert_xml_equal(post, etree_to_str(resource))
示例#2
0
 def assert_disabled(pre, post):
     resource = etree.fromstring(pre)
     common.disable(resource, IdProvider(resource))
     assert_xml_equal(post, etree_to_str(resource))