time sleep( self _tm preparereporting(def execute(self)if not self _bproblemprint "executing the testtime sleep( elseprint "problem in setup test not executed def teardown(self)if not self _bproblemprint "tearing downtime sleep( self _tm publishreport(elseprint "test not executed no tear down required def settm(self,tm)self _tm tm def setproblem(selfvalue)self _bproblem value class reporterdef __init__(self)self _tm none def prepare(self)print "reporter class is preparing to report the resultstime sleep( def report(self)print "reporting the results of testtime sleep( def settm(self,tm)self _tm tm class dbdef __init__(self)self _tm none def insert(self)print "inserting the execution begin status in the databasetime sleep( www testingperspective com