Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
99785047
Commit
99785047
authored
Jun 10, 2011
by
JINMEI Tatuya
Browse files
[trac955] added some descriptive comments to __match_exception()
parent
6135be82
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/xfrin/tests/xfrin_test.py
View file @
99785047
...
...
@@ -209,6 +209,10 @@ class TestXfrinConnection(unittest.TestCase):
return
mock_ctx
def
__match_exception
(
self
,
expected_exception
,
expected_msg
,
expression
):
# This helper method is a higher-granularity version of assertRaises().
# If it's not sufficient to check the exception class (e.g., when
# the same type of exceptions can be thrown from many places), this
# method can be used to check it with the exception argument.
try
:
expression
()
except
expected_exception
as
ex
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment