def METHOD_NAME(self):
    db_events_filter = EventsFilter(regex="lalala")
    self.assertEqual(db_events_filter._regex,  # pylint: disable=protected-access
                     re.compile("lalala", re.MULTILINE | re.DOTALL))
    self.assertEqual(db_events_filter._regex.pattern, "lalala")  # pylint: disable=protected-access
    self.assertEqual(db_events_filter.regex, "lalala")
    self.assertEqual(db_events_filter, pickle.loads(pickle.dumps(db_events_filter)))
    db_events_filter.to_json()