BIND 10 trac588, updated. a92158cc1d674e0dce9e75acbb40a1a9bd807f0e Merge branch 'trac588' of ssh://bind10.isc.org/var/bind10/git/bind10 into trac588

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Mar 14 01:25:50 UTC 2011


The branch, trac588 has been updated
       via  a92158cc1d674e0dce9e75acbb40a1a9bd807f0e (commit)
       via  3a4e135e22cb4e986ca4c1902d34172ccc9aeae1 (commit)
      from  065327bbba5925b882af5230e5d312750e619a91 (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 a92158cc1d674e0dce9e75acbb40a1a9bd807f0e
Merge: 3a4e135e22cb4e986ca4c1902d34172ccc9aeae1 065327bbba5925b882af5230e5d312750e619a91
Author: chenzhengzhang <jerry.zzpku at gmail.com>
Date:   Mon Mar 14 09:25:48 2011 +0800

    Merge branch 'trac588' of ssh://bind10.isc.org/var/bind10/git/bind10 into trac588

commit 3a4e135e22cb4e986ca4c1902d34172ccc9aeae1
Author: chenzhengzhang <jerry.zzpku at gmail.com>
Date:   Mon Mar 14 09:24:14 2011 +0800

    [trac588] add unittest for 'EOF' case

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

Summary of changes:
 src/bin/bindctl/tests/bindctl_test.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/bindctl/tests/bindctl_test.py b/src/bin/bindctl/tests/bindctl_test.py
index ed47e7f..ca2c9f6 100644
--- a/src/bin/bindctl/tests/bindctl_test.py
+++ b/src/bin/bindctl/tests/bindctl_test.py
@@ -311,6 +311,16 @@ class TestConfigCommands(unittest.TestCase):
         self.tool.config_data = FakeCCSession()
         self.stdout_backup = sys.stdout
 
+    def test_precmd(self):
+        def update_all_modules_info():
+            raise socket.error
+        def precmd(line):
+            self.tool.precmd(line)
+        self.tool._update_all_modules_info = update_all_modules_info
+        # If line is equals to 'EOF', _update_all_modules_info() shouldn't be called
+        self.assertRaises(None, precmd('EOF'))
+        self.assertRaises(socket.error, precmd, 'continue')
+
     def test_run(self):
         def login_to_cmdctl():
             return True




More information about the bind10-changes mailing list