1
0
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:
Ilya Kreymer 2016-06-16 00:00:47 -04:00
parent 457a1a564c
commit d457223555
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -0,0 +1,2 @@
[яЇА"y\ыZЊB;ф%UZ™±5Ићћ
{Kђ№<<3C>И @ужЩMдme'‡_¦й0{<ШS