a2bits_list now return a list of 32 bits characters

This commit is contained in:
Cédric Bonhomme 2017-03-20 22:53:55 +01:00
parent 6ad140bdfb
commit 4fc8eac172
No known key found for this signature in database
GPG key ID: A1CB94DE57B7A70D
2 changed files with 13 additions and 13 deletions

View file

@ -36,7 +36,7 @@ with open('CHANGELOG.rst', 'r') as f:
setup( setup(
name='Stegano', name='Stegano',
version='0.6.9', version='0.6.10',
author='Cédric Bonhomme', author='Cédric Bonhomme',
author_email='cedric@cedricbonhomme.org', author_email='cedric@cedricbonhomme.org',
packages=packages, packages=packages,

View file

@ -39,18 +39,18 @@ class TestTools(unittest.TestCase):
def test_a2bits_list(self): def test_a2bits_list(self):
list_of_bits = tools.a2bits_list("Hello World!") list_of_bits = tools.a2bits_list("Hello World!")
self.assertEqual(list_of_bits, ['01001000', self.assertEqual(list_of_bits, ['00000000000000000000000001001000',
'01100101', '00000000000000000000000001100101',
'01101100', '00000000000000000000000001101100',
'01101100', '00000000000000000000000001101100',
'01101111', '00000000000000000000000001101111',
'00100000', '00000000000000000000000000100000',
'01010111', '00000000000000000000000001010111',
'01101111', '00000000000000000000000001101111',
'01110010', '00000000000000000000000001110010',
'01101100', '00000000000000000000000001101100',
'01100100', '00000000000000000000000001100100',
'00100001']) '00000000000000000000000000100001'])
def test_n_at_a_time(self): def test_n_at_a_time(self):
result = tools.n_at_a_time([1, 2, 3, 4, 5], 2, 'X') result = tools.n_at_a_time([1, 2, 3, 4, 5], 2, 'X')