def check_squid_service(self):
        """Checks if squid is running on port 3128."""

        print "Checking Squid service......",
        if commands.getoutput('ps -ef') not in 'squid':
            self._set_status(
                0,
                "[%s]Error: squid service does not seem "
                "running" % self.NAME)

        try:
            if 'squid' != socket.getservbyport(3128):
                self._set_status(
                    0,
                    "[%s]Error: squid is not listening on "
                    "3128" % self.NAME)

        except Exception:
            self._set_status(
                0,
                "[%s]Error: No service is listening on 3128, "
                "squid failed" % self.NAME)

        return True
dataset/ETHPy150Open openstack/compass-core/compass/actions/health_check/check_squid.py/SquidCheck.check_squid_service/swapped operands of `not in`