def test_jobs_spec(self): # This generates an "InnerClassList" which has a list of tuples of the # form (class name, class). We verify we have the expected set here. jobs = jobs_converter(DEFAULT_JOBS) job_names = sorted( [job_name for job_name, job_class in jobs.class_list]) assert job_names == self.expected_job_names
def test_dotted_path(self): # This generates an "InnerClassList" which has a list of tuples of the # form (class name, class). We verify we have the expected set here. jobs = jobs_converter('socorro.cron.crontabber_app.DEFAULT_JOBS') job_names = sorted( [job_name for job_name, job_class in jobs.class_list]) assert job_names == self.expected_job_names
def test_jobs_spec(self): # This generates an "InnerClassList" which has a list of tuples of the # form (class name, class). We verify we have the expected set here. jobs = jobs_converter(DEFAULT_JOBS) job_names = sorted([job_name for job_name, job_class in jobs.class_list]) assert job_names == self.expected_job_names
def test_dotted_path(self): # This generates an "InnerClassList" which has a list of tuples of the # form (class name, class). We verify we have the expected set here. jobs = jobs_converter('socorro.cron.crontabber_app.DEFAULT_JOBS') job_names = sorted([job_name for job_name, job_class in jobs.class_list]) assert job_names == self.expected_job_names