def publish(self, message, message_id):
        if self.protocol == 'sqs':
            queue_name = self.endpoint.split(":")[-1]
            region = self.endpoint.split(":")[3]
            sqs_backends[region].send_message(queue_name, message)
        elif ['http', 'https'] in self.protocol:
            post_data = self.get_post_data(message, message_id)
            requests.post(self.endpoint, data=post_data)
dataset/ETHPy150Open spulec/moto/moto/sns/models.py/Subscription.publish/swapped operands of `in`