#NEWLINE# def test_notif_manager_test_notification( self ) : #NEWLINE# #INDENT# clt = details . client #NEWLINE# mgr = clt . _notification_manager #NEWLINE# mgr . api . method_post = Mock ( return_value = ( None , None ) ) #NEWLINE# ntyp = utils . random_unicode ( ) #NEWLINE# details = utils . random_unicode ( ) #NEWLINE# exp_uri = '/test-notification' #NEWLINE# exp_body = { #NEWLINE# #INDENT# 'type' : ntyp , #NEWLINE# 'details' : details , #NEWLINE# #UNINDENT# } #NEWLINE# mgr . test_notification ( notification_type = ntyp , details = details ) #NEWLINE# mgr . api . method_post . assert_called_once_with ( exp_uri , body = exp_body )