#NEWLINE# def test_renderer_classes( self ) : #NEWLINE# #INDENT# @ api_view ( [ 'GET' ] ) #NEWLINE# @ renderer_classes ( [ JSONRenderer ] ) #NEWLINE# def view( request ) : #NEWLINE# #INDENT# return Response ( { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# request = self . factory . get ( '/' ) #NEWLINE# response = view ( self ) #NEWLINE# self . assertTrue ( isinstance ( response . accepted_renderer , JSONRenderer ) )