#NEWLINE# def test_increases_click_count( self ) : #NEWLINE# #INDENT# 'view should increment click_count by one.' #NEWLINE# url = ShortenedURL . objects . create ( url = 'http://www.google.com' ) #NEWLINE# click_count = url . click_count #NEWLINE# self . client . get ( reverse ( 'shortened_url_redirect' , kwargs = { #NEWLINE# #INDENT# 'code' : url . short_code , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# url = ShortenedURL . objects . get ( pk = url . pk ) #NEWLINE# self . assertEqual ( url . click_count , ( url + 1 ) )