#NEWLINE# @ nottest #NEWLINE# def add_test( test , res , info = None ) : #NEWLINE# #INDENT# a = BNode ( ) #NEWLINE# report . add ( ( a , RDF . type , EARL . Assertion ) ) #NEWLINE# report . add ( ( a , EARL . assertedBy , me ) ) #NEWLINE# report . add ( ( a , EARL . test , test ) ) #NEWLINE# report . add ( ( a , EARL . subject , rdflib ) ) #NEWLINE# report . add ( ( a , DC . date , now ) ) #NEWLINE# r = BNode ( ) #NEWLINE# report . add ( ( a , EARL . result , r ) ) #NEWLINE# report . add ( ( r , RDF . type , EARL . TestResult ) ) #NEWLINE# report . add ( ( r , EARL . outcome , EARL [ res ] ) ) #NEWLINE# if info : #NEWLINE# #INDENT# report . add ( ( r , EARL . info , Literal ( info ) ) )