def test04_update_all_erratas_success(self): used_cached, data = fetchrat.get_data(7, False, True) with self.assertRaises(SystemExit): fetchrat.quit(used_cached, data) self.assertFalse(used_cached) self.assertTrue(len(data) != 0) self.assertTrue(os.path.exists(self.cached_erratas_path))
def test08_get_version_fail(self, get_str): used_cached, data = fetchrat.get_data(7, use_cashed=True, forced_update_all=False) self.assertNotEquals(fetchrat.print_versions_list_get_choice(data), '2.2')
def test06_get_cached_erratas_success(self): used_cached, data = fetchrat.get_data(7, use_cashed=True, forced_update_all=False) self.assertTrue(used_cached) self.assertTrue(len(data) != 0)
def test05_update_newest_errata_success(self): used_cached, data = fetchrat.get_data(7, False, False) self.assertFalse(used_cached) self.assertTrue(len(data) != 0)