def generate(self):
        for sensor in self.plugins:
            # update the sensors value periodically
            logger.info('Started thread job for the sensor {0}'.format(sensor))
            job = ThreadJob(sensor.update,self.stop_event,sensor.interval)
            job.start()
Fail unless an exception of class excClass is thrown
dataset/ETHPy150Open black-perl/ptop/ptop/statistics/statistics.py/Statistics.generate--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.3/django/utils/unittest/case.py/TestCase.assertRaises