From: Mukund Sivaraman Date: Mon, 26 Mar 2012 05:52:24 +0000 (+0530) Subject: bug #1819: Add testcase for --no-kill and -i options handling X-Git-Tag: trac2351_base~226^2~116^2~95^2~4^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d2661eddfcbca6532d6cbe18954d345ab8566345;p=thirdparty%2Fkea.git bug #1819: Add testcase for --no-kill and -i options handling --- diff --git a/src/bin/bind10/tests/bind10_test.py.in b/src/bin/bind10/tests/bind10_test.py.in index 882824d43a..cd3ff626aa 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.