def METHOD_NAME(self, context):
    ab = which('ab')
    if not ab:
        msg = 'ab not found on host; make sure apache2-utils (or you distro equivalent) package is installed.'
        raise WorkloadError(msg)
    response = urlopen('http://{}:{}{}'.format(self.target.conn.host, self.port, self.path))
    code = response.getcode()
    if code != 200:
        msg = 'HTTP request failed with status {}; is Apache running on target?'
        raise WorkloadError(msg.format(code))