예제 #1
0
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
예제 #2
0
def test_compare_pickle_file_basic(picklefile1):
    assert utils.pickle_file_compare(picklefile1.name, picklefile1.name)
예제 #3
0
def test_compare_pickle_file_bad2(picklefile3, picklefile4):
    assert not utils.pickle_file_compare(picklefile3.name, picklefile4.name)
예제 #4
0
def test_compare_pickle_file_relative(picklefile3, picklefile4):
    assert utils.pickle_file_compare(picklefile3.name,
                                     picklefile4.name,
                                     relative=True)
예제 #5
0
def test_compare_pickle_file_bad(picklefile1, picklefile2):
    assert not utils.pickle_file_compare(picklefile1.name, picklefile2.name)