#NEWLINE# def test_object_at_custom_name_in_context_data( self ) : #NEWLINE# #INDENT# test_view = views . CustomSingleObjectView ( ) #NEWLINE# test_view . context_object_name = 'pony' #NEWLINE# context = test_view . get_context_data ( ) #NEWLINE# self . assertEqual ( context [ 'pony' ] , self . object )