From: Jelte Jansen Date: Mon, 24 Sep 2012 08:38:38 +0000 (+0200) Subject: [2254] cleanup and one extra test X-Git-Tag: trac2402_base~83^2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b8b55c00ba7bba8e4f95336eb2bb34c0b151efb;p=thirdparty%2Fkea.git [2254] cleanup and one extra test --- diff --git a/src/lib/python/isc/config/config_data.py b/src/lib/python/isc/config/config_data.py index 723185e81d..e09ce3358d 100644 --- a/src/lib/python/isc/config/config_data.py +++ b/src/lib/python/isc/config/config_data.py @@ -25,8 +25,6 @@ import isc.config.module_spec import ast import copy -import traceback - class ConfigDataError(Exception): pass BIND10_CONFIG_DATA_VERSION = 2 diff --git a/src/lib/python/isc/config/tests/ccsession_test.py b/src/lib/python/isc/config/tests/ccsession_test.py index 0101d50fb1..f81b1dbfdc 100644 --- a/src/lib/python/isc/config/tests/ccsession_test.py +++ b/src/lib/python/isc/config/tests/ccsession_test.py @@ -997,6 +997,7 @@ class TestUIModuleCCSession(unittest.TestCase): self.assertRaises(isc.cc.data.DataNotFoundError, uccs.remove_value, 1, "a") self.assertRaises(isc.cc.data.DataNotFoundError, uccs.remove_value, "no_such_item", "a") self.assertRaises(isc.cc.data.DataNotFoundError, uccs.remove_value, "Spec2/item1", "a") + self.assertRaises(isc.cc.data.DataNotFoundError, uccs.remove_value, "Spec2", "") self.assertEqual({}, uccs._local_changes) uccs.add_value("Spec2/item5", "foo") @@ -1020,6 +1021,7 @@ class TestUIModuleCCSession(unittest.TestCase): self.assertRaises(isc.cc.data.DataTypeError, uccs.remove_value, "Spec2/item5", None) + # Check that the difference between no default and default = null # is recognized def test_default_null(self):