Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/d/j/django-multilingual-events-1.0/multilingual_events/tests/multilingual_events_tags_tests.py   django-multilingual-events(Download)
"""Tests for the templatetags of the ``multilingual_events`` app."""
from django.template import RequestContext
from django.test import TestCase, RequestFactory
 
from ..templatetags.multilingual_events_tags import get_events
        req.LANGUAGE_CODE = 'en'
        context = RequestContext(req)
        result = get_events(context)
        self.assertEqual(result.count(), 2)
 
        req.LANGUAGE_CODE = None
        context = RequestContext(req)
        result = get_events(context)