#NEWLINE# def validate_self_link( self , resource , uuid , link ) : #NEWLINE# #INDENT# 'Check whether the given self link formatted correctly.' #NEWLINE# expected_link = '{base}/{pref}/{res}/{uuid}' . format ( base = self . client . base_url , pref = self . client . uri_prefix , res = resource , uuid = uuid ) #NEWLINE# self . assertEqual ( expected_link , link )