-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added connection information to exceptions
TODO: * Specify the connection in all pywbem exceptions that are raised. Details: * Added a keyword argument 'conn' to all pywbem exceptions, to pass the WBEMConnection object of the connection. Added two new properties to all pywbem exceptions: - A `conn` property of the connection object. - A `conn_str` property for the connection info string, for use in exception messages. * Extended the unit test cases in test_exceptions.py with a fixture for the 'conn' init argument, and with a new _assert_connection() method that verifies the connection information. Signed-off-by: Andreas Maier <andreas.r.maier@gmx.de>
- Loading branch information
1 parent
037cccf
commit 92c3a83
Showing
3 changed files
with
130 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters