def test_json_view_normal_response():
 expected = http.HttpResponseForbidden()
 response = json_view((lambda r: expected))(mock.Mock())
 assert (expected is response)
 eq_(response['Content-Type'], 'text/html; charset=utf-8')

def test_json_view_normal_response ( ) : expected = http . HttpResponseForbidden ( ) response = json_view ( ( lambda r : expected ) ) ( mock . Mock ( ) ) assert ( expected is response ) eq_ ( response [ 'Content-Type' ] , 'text/html; charset=utf-8' )
normal responses get passed through .