def check_apache_running(self, apache_service):

        print "Checking Apache service......",
        serv_err_msg = health_check_utils.check_service_running(self.NAME,
                                                                apache_service)
        if not serv_err_msg == "":
            self._set_status(0, serv_err_msg)
        if 'http' != socket.getservbyport(80):
            self._set_status(
                0,
                "[%s]Error: Apache is not listening on port 80."
                % self.NAME)
        try:
            html = urllib2.urlopen('http://localhost')
            html.geturl()
        except Exception:
            self._set_status(
                0,
                "[%s]Error: Apache is not listening on port 80."
                % self.NAME)

        return True
Given a chunk of restructuredText, returns a list of tuples
dataset/ETHPy150Open openstack/compass-core/compass/actions/health_check/check_apache.py/ApacheCheck.check_apache_running--crossover with--dataset/ETHPy150Open mgaitan/sublime-rst-completion/headers.py/RstHeaderTree._parse