#NEWLINE# def test_check_create_alarm( self ) : #NEWLINE# #INDENT# ent = self . entity #NEWLINE# clt = self . client #NEWLINE# mgr = clt . _entity_manager #NEWLINE# id_ = utils . random_unicode ( ) #NEWLINE# chk = CloudMonitorCheck ( mgr , info = { #NEWLINE# #INDENT# 'id' : id_ , #NEWLINE# #UNINDENT# } , entity = ent ) #NEWLINE# mgr . create_alarm = Mock ( ) #NEWLINE# notification_plan = 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# chk . create_alarm ( notification_plan , criteria = criteria , disabled = disabled , label = label , name = name , metadata = metadata ) #NEWLINE# mgr . create_alarm . assert_called_once_with ( ent , chk , notification_plan , criteria = criteria , disabled = disabled , label = label , name = name , metadata = metadata )