示例#1
0
 def test_http_port_is_returned(self):
   server_xml = TomcatServerXml.fromstring(self.get_valid_tomcat_file_content())
   self.assertEquals("8080", server_xml.http_port())
示例#2
0
 def test_http_port_is_returned(self):
     server_xml = TomcatServerXml.fromstring(
         self.get_valid_tomcat_file_content())
     self.assertEquals("8080", server_xml.http_port())
示例#3
0
 def test_raises_if_http_port_not_found(self):
   server_xml = TomcatServerXml.fromstring(self.get_file_without_http_port())
   self.assertRaises(WrongConfigException, server_xml.http_port)
示例#4
0
 def test_raises_if_http_port_not_found(self):
     server_xml = TomcatServerXml.fromstring(
         self.get_file_without_http_port())
     self.assertRaises(WrongConfigException, server_xml.http_port)