#NEWLINE# def test_direct_message_staff( self ) : #NEWLINE# #INDENT# '\n        Test that a regular user can direct message staff\n        ' #NEWLINE# visitor = self . create_user ( ) #NEWLINE# recipient = self . create_user ( is_staff = True ) #NEWLINE# self . login ( visitor ) #NEWLINE# self . assertTrue ( visitor . can_direct_message_user ( recipient ) ) #NEWLINE# response = self . client . get ( reverse ( 'user_details' , kwargs = { #NEWLINE# #INDENT# 'user_uuid' : recipient . uuid , #NEWLINE# #UNINDENT# } ) ) #NEWLINE# self . assertEqual ( recipient . status_code , 200 ) #NEWLINE# self . assertContains ( response , reverse ( 'create_direct_message' , kwargs = { #NEWLINE# #INDENT# 'user_uuid' : recipient . uuid , #NEWLINE# #UNINDENT# } ) )