예제 #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)