#NEWLINE# def test_extra_template_params( self ) : #NEWLINE# #INDENT# '\n        A template view can be customized to return extra context.\n        ' #NEWLINE# response = self . client . get ( '/template/custom/bar/' ) #NEWLINE# self . assertEqual ( self . status_code , 200 ) #NEWLINE# self . assertEqual ( response . context [ 'foo' ] , 'bar' ) #NEWLINE# self . assertEqual ( response . context [ 'key' ] , 'value' ) #NEWLINE# self . assertTrue ( isinstance ( response . context [ 'view' ] , View ) )