|
@@ -155,6 +155,26 @@ class FrameworkTest:
|
|
|
# End verify_urls
|
|
|
############################################################
|
|
|
|
|
|
+ ############################################################
|
|
|
+ # contains_type(type)
|
|
|
+ # true if this test contains an implementation of the given
|
|
|
+ # test type (json, db, etc.)
|
|
|
+ ############################################################
|
|
|
+ def contains_type(self, type):
|
|
|
+ if type == 'json' and self.json_url not None:
|
|
|
+ return True
|
|
|
+ if type == 'db' and self.db_url not None:
|
|
|
+ return True
|
|
|
+ if type == 'query' and self.query_url not None:
|
|
|
+ return True
|
|
|
+ if type == 'fortune' and self.fortune_url not None:
|
|
|
+ return True
|
|
|
+
|
|
|
+ return False
|
|
|
+ ############################################################
|
|
|
+ # End stop
|
|
|
+ ############################################################
|
|
|
+
|
|
|
############################################################
|
|
|
# benchmark
|
|
|
# Runs the benchmark for each type of test that it implements
|