From: Naoki Kambe Date: Thu, 20 Sep 2012 09:02:34 +0000 (+0900) Subject: [2222] removed unnecessary tests from TestXfroutSession X-Git-Tag: trac2351_base~44^2~8 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9a655fdd02d00a22003c6f7c9902ef80072a2332;p=thirdparty%2Fkea.git [2222] removed unnecessary tests from TestXfroutSession `None` is not set to a counter handler as a default. These tests are no longer effective. This change is due to a merge of #2158. --- diff --git a/src/bin/xfrout/tests/xfrout_test.py.in b/src/bin/xfrout/tests/xfrout_test.py.in index 9be9a699e3..c519b906b8 100644 --- a/src/bin/xfrout/tests/xfrout_test.py.in +++ b/src/bin/xfrout/tests/xfrout_test.py.in @@ -502,16 +502,6 @@ class TestXfroutSession(TestXfroutSessionBase): self.check_transfer_acl(acl_setter) self.assertGreater(self.get_counter('xfrrej'), 0) - def test_transfer_acl_with_nonetype_xfrrej(self): - # ACL checks only with the default ACL and NoneType xfrrej - # counter - def acl_setter(acl): - self.xfrsess._acl = acl - self.xfrsess._counter_xfrrej = None - self.assertIsNone(self._zone_name_xfrrej) - self.check_transfer_acl(acl_setter) - self.assertIsNone(self._zone_name_xfrrej) - def test_transfer_acl_with_notcallable_xfrrej(self): # ACL checks only with the default ACL and not callable xfrrej # counter @@ -902,20 +892,6 @@ class TestXfroutSession(TestXfroutSessionBase): self.assertEqual(self.sock.readsent(), b"success") self.assertGreater(self.get_counter('xfrreqdone'), 0) - def test_dns_xfrout_start_with_nonetype_xfrreqdone(self): - def noerror(msg, name, rrclass): - return Rcode.NOERROR() - self.xfrsess._xfrout_setup = noerror - - def myreply(msg, sock): - self.sock.send(b"success") - - self.assertIsNone(self._zone_name_xfrreqdone) - self.xfrsess._reply_xfrout_query = myreply - self.xfrsess._counter_xfrreqdone = None - self.xfrsess.dns_xfrout_start(self.sock, self.mdata) - self.assertIsNone(self._zone_name_xfrreqdone) - def test_dns_xfrout_start_with_notcallable_xfrreqdone(self): def noerror(msg, name, rrclass): return Rcode.NOERROR()