def _matches(self, item):
        if self.match_any:
            if len(item.get_effects()) > 0:
                return True
            else:
                return False

        for effect in item.get_effects():
            if effect == self.effect:
                return True
        return False
Test the |localtime, |utc, and |timezone filters with pytz.
dataset/ETHPy150Open tuturto/pyherc/src/pyherc/test/matchers/active_effects.py/EffectInstance._matches--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/tests/modeltests/timezones/tests.py/TemplateTests.test_localtime_filters_with_pytz