diff options
| author | Ramin Farajpour Cami <ramin.blackhat@gmail.com> | 2016-11-12 20:41:23 +0330 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-11-14 12:30:46 -0500 |
| commit | 967be82443b5640d61608a89897d8ce2bc44fa54 (patch) | |
| tree | 9905e1156e27aa3d1226da3dde1223a5087b0d55 /tests/decorators | |
| parent | 6072de727f0ffa7bf0aa67aadba5d4589561974d (diff) | |
Fixed E305 flake8 warnings.
Diffstat (limited to 'tests/decorators')
| -rw-r--r-- | tests/decorators/tests.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/decorators/tests.py b/tests/decorators/tests.py index 8d8f03f101..f8f8f4dc0a 100644 --- a/tests/decorators/tests.py +++ b/tests/decorators/tests.py @@ -30,6 +30,8 @@ from django.views.decorators.vary import vary_on_cookie, vary_on_headers def fully_decorated(request): """Expected __doc__""" return HttpResponse('<html><body>dummy</body></html>') + + fully_decorated.anything = "Expected __dict__" @@ -170,6 +172,7 @@ def simple_dec(func): return func("test:" + arg) return wraps(func)(wrapper) + simple_dec_m = method_decorator(simple_dec) @@ -180,6 +183,7 @@ def myattr_dec(func): wrapper.myattr = True return wraps(func)(wrapper) + myattr_dec_m = method_decorator(myattr_dec) @@ -189,6 +193,7 @@ def myattr2_dec(func): wrapper.myattr2 = True return wraps(func)(wrapper) + myattr2_dec_m = method_decorator(myattr2_dec) |
