Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/d/j/django-subscribe-0.1.4/subscribe/tests/subscribe_tags_tests.py   django-subscribe(Download)
"""Tests for the templatetags of the ``subscriptions`` app."""
from django.contrib.contenttypes.models import ContentType
from django.test import TestCase
 
from ..templatetags.subscribe_tags import (
    def test_tag(self):
        dummy = DummyModelFactory()
        ctype = ContentType.objects.get_for_model(dummy)
        result = get_ctype(dummy)
        self.assertEqual(result, ctype)