Esempio n. 1
0
 def assert_enabled(self, pre, post):
     resource = etree.fromstring(pre)
     common.enable(resource)
     assert_xml_equal(post, etree_to_str(resource))
Esempio n. 2
0
 def assert_enabled(pre, post):
     resource = etree.fromstring(pre)
     common.enable(resource, IdProvider(resource))
     assert_xml_equal(post, etree_to_str(resource))