commit eb413f5373af70cbd41a0f9bf0800cf47d609dcc
Author: Peter Hamilton <email address hidden>
Date: Mon Aug 12 09:05:44 2013 -0400
Fixing malformed assert message formatting
This modification addresses Bug #1210296, specifically addressing
malformed assert message formatting in assert_called_anytime. When
verifying that an API method was called during test execution, the
assert statement used will throw a TypeError when formatting the
assert message, instead of the expected AssertionError. This occurs
because a nested tuple in the format list is not properly expanded.
The error itself likely exists because assert_called_anytime is not
currently used in the python-cinderclient testing framework.
The fix involves joining the arguments in the format list into a
single tuple, allowing proper argument expansion.
Reviewed: https:/ /review. openstack. org/41525 github. com/openstack/ python- cinderclient/ commit/ eb413f5373af70c bd41a0f9bf0800c f47d609dcc
Committed: http://
Submitter: Jenkins
Branch: master
commit eb413f5373af70c bd41a0f9bf0800c f47d609dcc
Author: Peter Hamilton <email address hidden>
Date: Mon Aug 12 09:05:44 2013 -0400
Fixing malformed assert message formatting
This modification addresses Bug #1210296, specifically addressing called_ anytime. When called_ anytime is not
malformed assert message formatting in assert_
verifying that an API method was called during test execution, the
assert statement used will throw a TypeError when formatting the
assert message, instead of the expected AssertionError. This occurs
because a nested tuple in the format list is not properly expanded.
The error itself likely exists because assert_
currently used in the python-cinderclient testing framework.
The fix involves joining the arguments in the format list into a
single tuple, allowing proper argument expansion.
Fixes: bug 1210296
Change-Id: I6cf9dd55cff318 e8a850637c54043 6c91dac08df