#NEWLINE# def ping( self , datacenter = None , network = None ) : #NEWLINE# #INDENT# 'Ping a message queue endpoint.' #NEWLINE# resp = requests . get ( ( '%s/v1/ping' % self . get_endpoint ( datacenter , datacenter ) ) ) #NEWLINE# resp . raise_for_status ( ) #NEWLINE# return True