diff options
| author | Tom Christie | 2015-02-09 17:43:20 +0000 | 
|---|---|---|
| committer | Tom Christie | 2015-02-09 17:43:20 +0000 | 
| commit | b2939c157d32e604e10099be891e382d8c54bbec (patch) | |
| tree | 6b164989c0b659a2d92051c3fbd6625306056ecb /tests/test_response.py | |
| parent | 0669f507b3a63114cf429f0662b1781f0e1fa5f8 (diff) | |
| download | django-rest-framework-b2939c157d32e604e10099be891e382d8c54bbec.tar.bz2 | |
Fixes for latest version of pep8
Diffstat (limited to 'tests/test_response.py')
| -rw-r--r-- | tests/test_response.py | 9 | 
1 files changed, 7 insertions, 2 deletions
| diff --git a/tests/test_response.py b/tests/test_response.py index f233ae33..4a9deaa2 100644 --- a/tests/test_response.py +++ b/tests/test_response.py @@ -38,8 +38,13 @@ class MockTextMediaRenderer(BaseRenderer):  DUMMYSTATUS = status.HTTP_200_OK  DUMMYCONTENT = 'dummycontent' -RENDERER_A_SERIALIZER = lambda x: ('Renderer A: %s' % x).encode('ascii') -RENDERER_B_SERIALIZER = lambda x: ('Renderer B: %s' % x).encode('ascii') + +def RENDERER_A_SERIALIZER(x): +    return ('Renderer A: %s' % x).encode('ascii') + + +def RENDERER_B_SERIALIZER(x): +    return ('Renderer B: %s' % x).encode('ascii')  class RendererA(BaseRenderer): | 
