#NEWLINE# def test_direct_message_with_name( dispatcher ) : #NEWLINE# #INDENT# msg = { #NEWLINE# #INDENT# 'text' : ( FAKE_BOT_ATNAME + ' hello' ) , #NEWLINE# 'channel' : 'D99999' , #NEWLINE# #UNINDENT# } #NEWLINE# msg = dispatcher . filter_text ( msg ) #NEWLINE# assert ( msg [ 'text' ] == 'hello' )