Exemplo n.º 1
0
def test_reading_rar5_crc_sfx():
    assert rarfile.is_rarfile('test/files/rar5-crc.sfx') is False
    assert rarfile.is_rarfile_sfx('test/files/rar5-crc.sfx') is True
    run_reading('test/files/rar5-crc.sfx', 'RAR5 archive - crc\n')
Exemplo n.º 2
0
def test_reading_rar3_sfx():
    assert rarfile.is_rarfile('test/files/rar3-seektest.sfx') is False
    assert rarfile.is_rarfile_sfx('test/files/rar3-seektest.sfx') is True
    run_reading('test/files/rar3-seektest.sfx')
    run_reading('test/files/rar3-seektest.sfx')
Exemplo n.º 3
0
def test_reading_rar5_crc_sfx():
    assert rarfile.is_rarfile("test/files/rar5-crc.sfx") is False
    assert rarfile.is_rarfile_sfx("test/files/rar5-crc.sfx") is True
    run_reading("test/files/rar5-crc.sfx")