BIND 10 trac2595, updated. 0c19f89ff4a9838e93ed647ed34af6ffad3f420e [2595] Small cleanup in __check_printed_messages()

BIND 10 source code commits bind10-changes at lists.isc.org
Thu Jan 24 20:39:46 UTC 2013


The branch, trac2595 has been updated
       via  0c19f89ff4a9838e93ed647ed34af6ffad3f420e (commit)
      from  e283a05caf9dd0aefc7cd08a405dbc47510fbd43 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 0c19f89ff4a9838e93ed647ed34af6ffad3f420e
Author: Jelte Jansen <jelte at isc.org>
Date:   Thu Jan 24 21:39:18 2013 +0100

    [2595] Small cleanup in __check_printed_messages()

-----------------------------------------------------------------------

Summary of changes:
 src/bin/bindctl/tests/bindctl_test.py |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/bindctl/tests/bindctl_test.py b/src/bin/bindctl/tests/bindctl_test.py
index 2e8de8e..0ec9b58 100644
--- a/src/bin/bindctl/tests/bindctl_test.py
+++ b/src/bin/bindctl/tests/bindctl_test.py
@@ -366,9 +366,10 @@ class TestConfigCommands(unittest.TestCase):
     def __check_printed_messages(self, expected_messages):
         '''Helper test function to check the printed messages against a list
            of regexps'''
-        for el in map(self.__check_printed_message,
-                      expected_messages,
-                      self.printed_messages):
+        self.assertEqual(len(expected_messages), len(self.printed_messages))
+        for _ in map(self.__check_printed_message,
+                     expected_messages,
+                     self.printed_messages):
             pass
 
     def test_try_login(self):



More information about the bind10-changes mailing list