Example #1
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)
Example #2
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)
Example #3
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.")
Example #4
0
 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'))
Example #5
0
 def SaveXml(self, p_xml):
     p_xml.append(webXml.write_web_xml(self.m_pyhouse_obj.Computer.Web))
     LOG.info("Saved WebServer XML.")
Example #6
0
 def test_21_WriteXML(self):
     l_web = webXml.read_web_xml(self.m_pyhouse_obj)
     l_xml = webXml.write_web_xml(l_web)
Example #7
0
 def test_21_WriteXML(self):
     l_web = webXml.read_web_xml(self.m_pyhouse_obj)
     l_xml = webXml.write_web_xml(l_web)
Example #8
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.")