#NEWLINE# def test_compose( self ) : #NEWLINE# #INDENT# ' A ``GET`` to the compose view ' #NEWLINE# self . _test_login ( 'userena_umessages_compose' ) #NEWLINE# client = self . client . login ( username = 'john' , password = 'blowfish' ) #NEWLINE# response = self . client . get ( reverse ( 'userena_umessages_compose' ) ) #NEWLINE# self . assertEqual ( response . status_code , 200 ) #NEWLINE# self . assertTemplateUsed ( response , 'umessages/message_form.html' ) #NEWLINE# self . assertTrue ( isinstance ( response . context [ 'form' ] , ComposeForm ) )