File: test_interface.py

package info (click to toggle)
django-distill 3.2.7-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 316 kB
  • sloc: python: 2,144; makefile: 4
file content (16 lines) | stat: -rw-r--r-- 574 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from django.test import TestCase
from django.conf import settings
import django_distill


class DjangoDistillInterfaceTestSuite(TestCase):

    def test_import(self):
        assert hasattr(django_distill, 'distill_url')
        assert callable(django_distill.distill_url)
        if settings.HAS_RE_PATH:
            assert hasattr(django_distill, 'distill_re_path')
            assert callable(django_distill.distill_re_path)
        if settings.HAS_PATH:
            assert hasattr(django_distill, 'distill_path')
            assert callable(django_distill.distill_path)