#NEWLINE# def testSIPCustomProps( cfg ) : #NEWLINE# #INDENT# 'Sets and gets a custom property on the SIP container.' #NEWLINE# m = 'testSIPCustomProps:' #NEWLINE# sop ( m , 'Entry.' ) #NEWLINE# propName = 'sipproptestname' #NEWLINE# propValue = ( 'sipproptestvalue' + getSopTimestamp ( ) ) #NEWLINE# nodeName = cfg [ 'nodeName' ] #NEWLINE# serverName = cfg [ 'serverName' ] #NEWLINE# setSipContainerCustomProperty ( nodeName , serverName , propName , propValue ) #NEWLINE# sop ( m , ( ( ( ( ( ( ( 'Set prop. nodeName=' + nodeName ) + ' serverName=' ) + serverName ) + ' propName=' ) + propName ) + ' propValue=' ) + propValue ) ) #NEWLINE# newPropValue = getSipContainerCustomProperty ( nodeName , serverName , propName ) #NEWLINE# sop ( m , ( 'Read prop. newPropValue=' + newPropValue ) ) #NEWLINE# if ( propValue == newPropValue ) : #NEWLINE# #INDENT# sop ( m , 'Exit success' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# errbrk ( m , ( ( ( 'Prop values are not the same. propValue=' + propValue ) + ' newPropValue=' ) + newPropValue ) )