def test_04_Web(self): """ Write All logins. """ l_xml = webXml.write_web_xml(self.m_pyhouse_obj) print(PrettyFormatAny.form(l_xml, 'Web')) self.assertEqual(l_xml.find('Port').text, TESTING_WEB_PORT) self.assertEqual(l_xml.find('LoginSection/Login/FullName').text, TESTING_LOGIN_FULL_NAME_0)
def test_04_Web(self): """ Write All logins. """ l_xml = webXml.write_web_xml(self.m_pyhouse_obj) print(PrettyFormatAny.form(l_xml, 'Web')) self.assertEqual(l_xml.find('Port').text, TESTING_WEB_PORT) self.assertEqual( l_xml.find('LoginSection/Login/FullName').text, TESTING_LOGIN_FULL_NAME_0)
def SaveXml(self, p_xml): l_xml = webXml.write_web_xml(self.m_pyhouse_obj) p_xml.append(l_xml) LOG.info("Saved Web XML.")
def test_03_WriteXML(self): l_web = webXml.read_web_xml(self.m_pyhouse_obj) self.m_pyhouse_obj.Computer.Web = l_web print(PrettyFormatAny.form(l_web, 'Web Data')) l_xml = webXml.write_web_xml(l_web) print(PrettyFormatAny.form(l_xml, 'XML'))
def SaveXml(self, p_xml): p_xml.append(webXml.write_web_xml(self.m_pyhouse_obj.Computer.Web)) LOG.info("Saved WebServer XML.")
def test_21_WriteXML(self): l_web = webXml.read_web_xml(self.m_pyhouse_obj) l_xml = webXml.write_web_xml(l_web)