#NEWLINE# def test_clt_create_alarm( self ) : #NEWLINE# #INDENT# clt = self . client #NEWLINE# ent = self . entity #NEWLINE# mgr = clt . _entity_manager #NEWLINE# chk = utils . random_unicode ( ) #NEWLINE# nplan = utils . random_unicode ( ) #NEWLINE# criteria = utils . random_unicode ( ) #NEWLINE# disabled = utils . random_unicode ( ) #NEWLINE# label = utils . random_unicode ( ) #NEWLINE# name = utils . random_unicode ( ) #NEWLINE# metadata = utils . random_unicode ( ) #NEWLINE# answer = utils . random_unicode ( ) #NEWLINE# ent . create_alarm = Mock ( return_value = answer ) #NEWLINE# ret = clt . create_alarm ( ent , chk , nplan , criteria = criteria , disabled = disabled , label = label , name = name , metadata = metadata ) #NEWLINE# ent . create_alarm . assert_called_once_with ( chk , nplan , criteria = criteria , disabled = disabled , label = label , name = name , metadata = metadata ) #NEWLINE# self . assertEqual ( ret , answer )