]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
bug #1819: Add testcase for --no-kill and -i options handling
authorMukund Sivaraman <muks@isc.org>
Mon, 26 Mar 2012 05:52:24 +0000 (11:22 +0530)
committerMukund Sivaraman <muks@isc.org>
Tue, 27 Mar 2012 07:59:57 +0000 (13:29 +0530)
src/bin/bind10/tests/bind10_test.py.in

index 882824d43a46db59f92bf81d4bc79b62e8ec0e4f..cd3ff626aad840632c46194a6820142c303548d4 100644 (file)
@@ -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.