aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/tests/package.py
blob: 4128333cf234f2f19689ce47566e56f140901a3a (plain)
1
2
3
4
5
6
7
8
9
10
11
"""Tests for the djangorestframework package setup."""
from django.test import TestCase
import djangorestframework

class TestVersion(TestCase): 
    """Simple sanity test to check the VERSION exists"""

    def test_version(self):
        """Ensure the VERSION exists."""
        djangorestframework.VERSION

parse without violating * any of these restrictions. * * AngularJS uses `Function(string)` generated functions as a speed optimization. Applying the `ngCsp` * directive will cause Angular to use CSP compatibility mode. When this mode is on AngularJS will * evaluate all expressions up to 30% slower than in non-CSP mode, but no security violations will * be raised. * * In order to use this feature put the `ngCsp` directive on the root element of the application. * * *Note: This directive is only available in the `ng-csp` and `data-ng-csp` attribute form.* * * @example * This example shows how to apply the `ngCsp` directive to the `html` tag. <pre> <!doctype html> <html ng-app ng-csp> ... ... </html> </pre> */ // ngCsp is not implemented as a proper directive any more, because we need it be processed while we bootstrap // the system (before $parse is instantiated), for this reason we just have a csp() fn that looks for ng-csp attribute // anywhere in the current doc