#NEWLINE# def test_story_view( self ) : #NEWLINE# #INDENT# url = reverse ( 'success_story_detail' , kwargs = { #NEWLINE# #INDENT# 'slug' : self . story1 . slug , #NEWLINE# #UNINDENT# } ) #NEWLINE# r = self . client . get ( url ) #NEWLINE# self . assertEqual ( r . status_code , 200 ) #NEWLINE# self . assertEqual ( r . context [ 'story' ] . pk , self . story1 . pk ) #NEWLINE# self . assertEqual ( len ( r . context [ 'category_list' ] ) , 1 )