]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2353] Check remove_socket_srv() with different states of BoB._srv_socket
authorMukund Sivaraman <muks@isc.org>
Fri, 9 Nov 2012 05:42:01 +0000 (11:12 +0530)
committerMukund Sivaraman <muks@isc.org>
Fri, 9 Nov 2012 05:42:24 +0000 (11:12 +0530)
src/bin/bind10/tests/bind10_test.py.in

index 75f7c69e55603f2fd9a06342cccb19465c14ec85..cae56cab02788c103282280c9fd1915d8e1f40c6 100644 (file)
@@ -406,6 +406,14 @@ class TestBoB(unittest.TestCase):
         self.assertFalse(os.path.exists(bob._socket_path))
         self.assertFalse(os.path.isdir(bob._tmpdir))
 
+        # These should not fail either:
+
+        # second call
+        bob.remove_socket_srv()
+
+        bob._srv_socket = None
+        bob.remove_socket_srv()
+
     def test_init_alternate_socket(self):
         bob = BoB("alt_socket_file")
         self.assertEqual(bob.verbose, False)