def tearDownClass(cls):
        for i in xrange(3):
            for jobinfo in cls.project.jobs.get(cls.spider_increment + i, meta='_key'):
                logging.info('%s', jobinfo)
                jobkey = jobinfo.pop('_key')
                job = cls.hsclient.get_job(jobkey)
                for key in jobinfo:
                    job.jobs.delete(key)

        HSTestCase.tearDownClass()
 def setUpClass(cls):
     HSTestCase.setUpClass()
     cls.job1 = cls.project.get_job((cls.spider_increment, 1))
     cls.job1.update(cls.meta1)
     cls.job2 = cls.project.get_job((cls.spider_increment + 1, 1))
     cls.job2.update(cls.meta2)