django-rest-framework/tests/importable/test_installed.py
Jon Dufresne f9c67f04d4 Clean up all whitespace throughout project (#5578)
* Remove trailing whitespace from lines
* Remove trailing nad leading whitespace from files

Allows for cleaner diffs in future changes. For editors that
automatically clean up whitespace on save, will avoid unrelated line
changes in diffs.
2017-11-09 20:57:53 +01:00

13 lines
325 B
Python

from django.conf import settings
from tests import importable
def test_installed():
# ensure that apps can freely import rest_framework.compat
assert 'tests.importable' in settings.INSTALLED_APPS
def test_imported():
# ensure that the __init__ hasn't been mucked with
assert hasattr(importable, 'compat')