コード例 #1
0
ファイル: test_bzip2.py プロジェクト: dezgeg/debbindiff
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'
コード例 #2
0
ファイル: test_bzip2.py プロジェクト: dezgeg/debbindiff
def differences():
    return compare_bzip2_files(TEST_FILE1_PATH, TEST_FILE2_PATH).details
コード例 #3
0
ファイル: test_bzip2.py プロジェクト: dezgeg/debbindiff
def test_no_differences():
    difference = compare_bzip2_files(TEST_FILE1_PATH, TEST_FILE1_PATH)
    assert difference is None