Esempio n. 1
0
def test_content_source_without_extension(tmpdir):
    path1 = str(tmpdir.join('test1'))
    path2 = str(tmpdir.join('test2'))
    shutil.copy(TEST_FILE1_PATH, path1)
    shutil.copy(TEST_FILE2_PATH, path2)
    differences = compare_bzip2_files(path1, path2).details
    assert differences[0].source1 == 'test1-content'
    assert differences[0].source2 == 'test2-content'
Esempio n. 2
0
def differences():
    return compare_bzip2_files(TEST_FILE1_PATH, TEST_FILE2_PATH).details
Esempio n. 3
0
def test_no_differences():
    difference = compare_bzip2_files(TEST_FILE1_PATH, TEST_FILE1_PATH)
    assert difference is None