def tnc(self, case_path, pkl_path, tf): """ Test and compare """ addfile = None if isinstance(case_path, (tuple, list)): addfile = get_case(case_path[1]) case_path = get_case(case_path[0]) else: case_path = get_case(case_path) ss = compare_results(case_path, pkl_path, tf=tf, addfile=addfile) andes.main.misc(clean=True) self.assertEqual(ss.exit_code, 0, "Exit code is not 0.")
def tnc(self, case_path, pkl_path, tf, pkl_prefix='pkl'): """ Test and compare """ addfile = None if isinstance(case_path, (tuple, list)): addfile = get_case(case_path[1]) case_path = get_case(case_path[0]) else: case_path = get_case(case_path) ss = compare_results(case_path, os.path.join(pkl_prefix, pkl_path), tf=tf, addfile=addfile) self.assertEqual(ss.exit_code, 0, "Exit code is not 0.")