#NEWLINE# def test_functions_available( self ) : #NEWLINE# #INDENT# missing_functions = [ ] #NEWLINE# for fname in drvapi . API_PROTOTYPES . keys ( ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# getattr ( hsa , fname ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# missing_functions . append ( "'{0}': {1}" . format ( fname , str ( e ) ) ) #NEWLINE# #UNINDENT# #UNINDENT# self . assertEqual ( len ( missing_functions ) , 0 , msg = '\n' . join ( missing_functions ) )