#NEWLINE# def test_message_detail( self ) : #NEWLINE# #INDENT# ' A ``GET`` to the detail view ' #NEWLINE# self . _test_login ( 'userena_umessages_detail' , kwargs = { #NEWLINE# #INDENT# 'message_id' : 2 , #NEWLINE# #UNINDENT# } ) #NEWLINE# client = self . client . login ( username = 'jane' , password = 'blowfish' ) #NEWLINE# response = self . client . get ( reverse ( 'userena_umessages_detail' , kwargs = { #NEWLINE# #INDENT# 'message_id' : 1 , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# self . assertTemplateUsed ( self , 'umessages/message_detail.html' ) #NEWLINE# jane = User . objects . get ( pk = 2 ) #NEWLINE# mr = MessageRecipient . objects . get ( message = Message . objects . get ( pk = 1 ) , user = jane ) #NEWLINE# self . assertTrue ( mr . read_at )