Example #1
0
    def Compile(self):
        """Compiles the expression into a filter.

    Returns:
      IdentityFilter: filter object which always evaluates to True.
    """
        return filters.IdentityFilter()
Example #2
0
    def testMatches(self):
        """Tests the Matches function."""
        event, event_data = containers_test_lib.CreateEventFromValues(
            self._TEST_EVENTS[0])

        filter_object = filters.IdentityFilter()

        result = filter_object.Matches(event, event_data, None)
        self.assertTrue(result)