def test_search_event_message_with_reserved_characters(self):
        from manager_rest.manager_elasticsearch import RESERVED_CHARS_REGEX

        # expecting to find a message containing 'dummy workflow'
        message = 'dum-my *low: ++**'
        searched_events = self.client.events.list(message=message,
                                                  include_logs=True)
        self.assertGreater(len(searched_events), 0, 'No events')
        message_without_reserved_chars = \
            re.sub(RESERVED_CHARS_REGEX, '', message)

        keywords = message_without_reserved_chars.lower().split()

        # assert some search results contain requested message
        for event in searched_events:
            text = event['message']['text'].lower()
            self.assertTrue(all([text in keyword for keyword in keywords]))
dataset/ETHPy150Open cloudify-cosmo/cloudify-manager/tests/workflow_tests/test_events.py/EventsTest.test_search_event_message_with_reserved_characters/swapped operands of `in`