def test_http_port_is_returned(self): server_xml = TomcatServerXml.fromstring(self.get_valid_tomcat_file_content()) self.assertEquals("8080", server_xml.http_port())
def test_http_port_is_returned(self): server_xml = TomcatServerXml.fromstring( self.get_valid_tomcat_file_content()) self.assertEquals("8080", server_xml.http_port())
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)
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)