More tests.

This commit is contained in:
Cédric Bonhomme 2017-02-22 11:45:04 +01:00
parent c65e83b62e
commit b71c866cf2
No known key found for this signature in database
GPG key ID: A1CB94DE57B7A70D
3 changed files with 60 additions and 3 deletions

View file

@ -26,6 +26,7 @@ __revision__ = "$Date: 2016/08/03 $"
__license__ = "GPLv3"
import base64
import itertools
from functools import reduce
def a2bits(chars):
@ -80,7 +81,7 @@ def n_at_a_time(items, n, fillvalue):
[(1, 2), (3, 4), (5, 'X')]
"""
it = iter(items)
return its.izip_longest(*[it] * n, fillvalue=fillvalue)
return itertools.zip_longest(*[it] * n, fillvalue=fillvalue)
def binary2base64(binary_file):
"""