#NEWLINE# def test_clt_get_alarm( self ) : #NEWLINE# #INDENT# clt = self . client #NEWLINE# ent = self . entity #NEWLINE# mgr = clt . _entity_manager #NEWLINE# answer = utils . random_unicode ( ) #NEWLINE# alm = utils . random_unicode ( ) #NEWLINE# ent . get_alarm = Mock ( return_value = answer ) #NEWLINE# ret = clt . get_alarm ( ent , alm ) #NEWLINE# ent . get_alarm . assert_called_once_with ( alm ) #NEWLINE# self . assertEqual ( ret , answer )