Beispiel #1
0
def differences():
    return compare_zip_files(TEST_FILE1_PATH, TEST_FILE2_PATH).details
Beispiel #2
0
def test_bad_zip():
    difference = compare_zip_files(os.path.join(os.path.dirname(__file__), '../data/text_unicode1'),
                                    os.path.join(os.path.dirname(__file__), '../data/text_unicode2'))
    expected_diff = open(os.path.join(os.path.dirname(__file__), '../data/text_unicode_binary_fallback')).read()
    assert difference.unified_diff == expected_diff
Beispiel #3
0
def test_no_differences():
    difference = compare_zip_files(TEST_FILE1_PATH, TEST_FILE1_PATH)
    assert difference is None