コード例 #1
0
ファイル: test_live.py プロジェクト: XingWei-Liu/pcs
 def fixture_status_xml(self, nodes, resources):
     xml_man = XmlManipulation.from_file(rc("crm_mon.minimal.xml"))
     doc = xml_man.tree.getroottree()
     doc.find("/summary/nodes_configured").set("number", str(nodes))
     doc.find("/summary/resources_configured").set("number", str(resources))
     return str(XmlManipulation(doc))
コード例 #2
0
ファイル: test_live.py プロジェクト: XingWei-Liu/pcs
 def test_success(self):
     xml = "<xml />"
     assert_xml_equal(xml, str(XmlManipulation((lib.get_cib(xml)))))