|
@@ -296,6 +296,13 @@ class TestCacheCommands(unittest.TestCase):
|
|
# to an error, not propagated
|
|
# to an error, not propagated
|
|
self.__raise_exception = Exception("Test exception")
|
|
self.__raise_exception = Exception("Test exception")
|
|
check_code(1, self.__socket_args)
|
|
check_code(1, self.__socket_args)
|
|
|
|
+ # The special "expected" exceptions
|
|
|
|
+ self.__raise_exception = \
|
|
|
|
+ isc.bind10.socket_cache.ShareError("Not shared")
|
|
|
|
+ check_code(3, self.__socket_args)
|
|
|
|
+ self.__raise_exception = \
|
|
|
|
+ isc.bind10.socket_cache.SocketError("Not shared", 13)
|
|
|
|
+ check_code(2, self.__socket_args)
|
|
|
|
|
|
def drop_socket(self, token):
|
|
def drop_socket(self, token):
|
|
"""
|
|
"""
|