BIND 10 trac1819, updated. 32cd7d8e520bee62c7873a486bf8b1057e794db0 bug #1819: Add testcase for --no-kill and -i options handling

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Mar 26 05:52:32 UTC 2012


The branch, trac1819 has been updated
       via  32cd7d8e520bee62c7873a486bf8b1057e794db0 (commit)
      from  13c15d11c29d01db5bd4f35862a881bf67348467 (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 32cd7d8e520bee62c7873a486bf8b1057e794db0
Author: Mukund Sivaraman <muks at isc.org>
Date:   Mon Mar 26 11:22:24 2012 +0530

    bug #1819: Add testcase for --no-kill and -i options handling

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

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

-----------------------------------------------------------------------
diff --git a/src/bin/bind10/tests/bind10_test.py.in b/src/bin/bind10/tests/bind10_test.py.in
index 882824d..cd3ff62 100644
--- a/src/bin/bind10/tests/bind10_test.py.in
+++ b/src/bin/bind10/tests/bind10_test.py.in
@@ -1012,6 +1012,16 @@ class TestParseArgs(unittest.TestCase):
         options = parse_args(['--config-file=config-file'], TestOptParser)
         self.assertEqual('config-file', options.config_file)
 
+    def test_nokill(self):
+        options = parse_args([], TestOptParser)
+        self.assertEqual(False, options.nokill)
+        options = parse_args(['--no-kill'], TestOptParser)
+        self.assertEqual(True, options.nokill)
+        options = parse_args([], TestOptParser)
+        self.assertEqual(False, options.nokill)
+        options = parse_args(['-i'], TestOptParser)
+        self.assertEqual(True, options.nokill)
+
     def test_cmdctl_port(self):
         """
         Test it can parse the command control port.



More information about the bind10-changes mailing list