Esempio n. 1
0
 def test_close_on_proxy_failure(self):
     """
     Test that an Exception is raised when an error occurs while closing
     the client proxy connection.
     """
     client = ProxyKmipClient()
     client._is_open = True
     client.proxy.close.side_effect = Exception
     self.assertRaises(Exception, client.close)
Esempio n. 2
0
 def test_close_on_proxy_failure(self):
     """
     Test that an Exception is raised when an error occurs while closing
     the client proxy connection.
     """
     client = ProxyKmipClient()
     client._is_open = True
     client.proxy.close.side_effect = Exception
     self.assertRaises(Exception, client.close)