From 4fc8eac172c041f1fa2c659e55942d79eaf1c606 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bonhomme?= Date: Mon, 20 Mar 2017 22:53:55 +0100 Subject: [PATCH] a2bits_list now return a list of 32 bits characters --- setup.py | 2 +- tests/test_tools.py | 24 ++++++++++++------------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/setup.py b/setup.py index 7633f21..4e0cc34 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ with open('CHANGELOG.rst', 'r') as f: setup( name='Stegano', - version='0.6.9', + version='0.6.10', author='Cédric Bonhomme', author_email='cedric@cedricbonhomme.org', packages=packages, diff --git a/tests/test_tools.py b/tests/test_tools.py index 61654c1..520859c 100644 --- a/tests/test_tools.py +++ b/tests/test_tools.py @@ -39,18 +39,18 @@ class TestTools(unittest.TestCase): def test_a2bits_list(self): list_of_bits = tools.a2bits_list("Hello World!") - self.assertEqual(list_of_bits, ['01001000', - '01100101', - '01101100', - '01101100', - '01101111', - '00100000', - '01010111', - '01101111', - '01110010', - '01101100', - '01100100', - '00100001']) + self.assertEqual(list_of_bits, ['00000000000000000000000001001000', + '00000000000000000000000001100101', + '00000000000000000000000001101100', + '00000000000000000000000001101100', + '00000000000000000000000001101111', + '00000000000000000000000000100000', + '00000000000000000000000001010111', + '00000000000000000000000001101111', + '00000000000000000000000001110010', + '00000000000000000000000001101100', + '00000000000000000000000001100100', + '00000000000000000000000000100001']) def test_n_at_a_time(self): result = tools.n_at_a_time([1, 2, 3, 4, 5], 2, 'X')