mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
tests: add brotli compression test #184
This commit is contained in:
parent
457a1a564c
commit
d457223555
@ -133,6 +133,14 @@ def compress_alt(buff):
|
|||||||
|
|
||||||
return compressed
|
return compressed
|
||||||
|
|
||||||
|
# Brotli
|
||||||
|
|
||||||
|
def test_brotli():
|
||||||
|
with open(get_test_dir() + 'text_content/quickfox_repeated.compressed', 'rb') as fh:
|
||||||
|
x = DecompressingBufferedReader(fh, decomp_type='br')
|
||||||
|
x.read() == b'The quick brown fox jumps over the lazy dog' * 4096
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Errors
|
# Errors
|
||||||
|
|
||||||
|
2
sample_archive/text_content/quickfox_repeated.compressed
Normal file
2
sample_archive/text_content/quickfox_repeated.compressed
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
[яЇА"y\ыZЊB;ф%UZ’™±5Ићћ
|
||||||
|
{Kђ№<<3C>И @ужЩMдme'‡_¦й0–{<ШS
|
Loading…
x
Reference in New Issue
Block a user