From: Michal 'vorner' Vaner Date: Wed, 22 May 2013 10:33:21 +0000 (+0200) Subject: [2930] Test empty params in python X-Git-Tag: bind10-1.2.0beta1-release~431^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fafa0dd4a0c97aeef84b7c95ed624c3873ca4cb4;p=thirdparty%2Fkea.git [2930] Test empty params in python --- diff --git a/src/lib/python/isc/config/tests/ccsession_test.py b/src/lib/python/isc/config/tests/ccsession_test.py index f7d014d6e9..3585337a1f 100644 --- a/src/lib/python/isc/config/tests/ccsession_test.py +++ b/src/lib/python/isc/config/tests/ccsession_test.py @@ -362,6 +362,20 @@ class TestModuleCCSession(unittest.TestCase): "param": True }]}, False]], fake_session.message_queue) + def test_notify_no_params(self): + """ + Test the sent notification has the right format, this time + without passing parameters. + """ + fake_session = FakeModuleCCSession() + mccs = self.create_session("spec1.spec", None, None, fake_session) + mccs.notify("group", "event") + self.assertEqual([ + ["notifications/group", "*", {"notification": ["event"]}, + False] + ], + fake_session.message_queue) + def my_config_handler_ok(self, new_config): return isc.config.ccsession.create_answer(0)