<s> import sys <EOL> import os <EOL> import timeit <EOL> import argparse <EOL> __path__ = os . path . dirname ( os . path . realpath ( __file__ ) ) <EOL> from RappCloud import RappCloud <EOL> class RappInterfaceTest : <EOL> def __init__ ( self ) : <EOL> self . rappCloud = RappCloud ( ) <EOL> self . ontology_class = "<STR_LIT>" <EOL> self . valid_results = [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] <EOL> def execute ( self ) : <EOL> start_time = timeit . default_timer ( ) <EOL> response = self . rappCloud . ontology_superclasses_of ( self . ontology_class ) <EOL> end_time = timeit . default_timer ( ) <EOL> self . elapsed_time = end_time - start_time <EOL> return self . validate ( response ) <EOL> def validate ( self , response ) : <EOL> error = response [ '<STR_LIT:error>' ] <EOL> if error != "<STR_LIT>" : <EOL> return [ error , self . elapsed_time ] <EOL> return_data = response [ '<STR_LIT>' ] <EOL> if self . valid_results == return_data : <EOL> return [ True , self . elapsed_time ] <EOL> else : <EOL> return [ "<STR_LIT>" + str ( return_data ) , self . elapsed_time ] </s>
