def test_find_job_not_done(self): name, path = A.find_job(self.crawl_dir, self.job_names, []) assert_is_none(name) assert_is_none(path) name, path = A.find_job(self.crawl_dir, self.job_names[:-1], []) assert_equals(path, self.job_paths[-1])
def test_rev_list(self): name, path = A.find_job(self.crawl_dir, [], []) assert_equals(2, len(A.git_rev_list(path)))
def test_find_job(self): name, path = A.find_job(self.crawl_dir, [], []) assert_in(path, self.job_paths) assert_in(name, self.job_names)