#NEWLINE# def test_entity_create_alarm( self ) : #NEWLINE# #INDENT# ent = self . entity #NEWLINE# mgr = ent . _alarm_manager #NEWLINE# mgr . create = Mock ( ) #NEWLINE# check = utils . random_unicode ( ) #NEWLINE# np = utils . random_unicode ( ) #NEWLINE# criteria = utils . random_unicode ( ) #NEWLINE# disabled = random . choice ( ( True , False ) ) #NEWLINE# label = utils . random_unicode ( ) #NEWLINE# name = utils . random_unicode ( ) #NEWLINE# metadata = utils . random_unicode ( ) #NEWLINE# ent . create_alarm ( check , np , criteria = criteria , disabled = disabled , label = label , name = name , metadata = metadata ) #NEWLINE# mgr . create . assert_called_once_with ( check , np , criteria = criteria , disabled = disabled , label = label , name = name , metadata = metadata )