コード例 #1
0
ファイル: test_gzip.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)
    difference = compare_gzip_files(path1, path2).details
    assert difference[1].source1 == "test1-content"
    assert difference[1].source2 == "test2-content"
コード例 #2
0
ファイル: test_gzip.py プロジェクト: dezgeg/debbindiff
def differences():
    return compare_gzip_files(TEST_FILE1_PATH, TEST_FILE2_PATH).details
コード例 #3
0
ファイル: test_gzip.py プロジェクト: dezgeg/debbindiff
def test_no_differences():
    difference = compare_gzip_files(TEST_FILE1_PATH, TEST_FILE1_PATH)
    assert difference is None