def test_pickle_file_compare(): ''' Test of utils.pickle_file_compare() function ''' fname = os.path.join(CUR_PATH, 'test_io_data', 'SS_solver_outputs_baseline.pkl') comparison = utils.pickle_file_compare(fname, fname) assert comparison
def test_compare_pickle_file_basic(picklefile1): assert utils.pickle_file_compare(picklefile1.name, picklefile1.name)
def test_compare_pickle_file_bad2(picklefile3, picklefile4): assert not utils.pickle_file_compare(picklefile3.name, picklefile4.name)
def test_compare_pickle_file_relative(picklefile3, picklefile4): assert utils.pickle_file_compare(picklefile3.name, picklefile4.name, relative=True)
def test_compare_pickle_file_bad(picklefile1, picklefile2): assert not utils.pickle_file_compare(picklefile1.name, picklefile2.name)