We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d13d201 commit 3d145deCopy full SHA for 3d145de
1 file changed
SoftLayer/testing/__init__.py
@@ -148,15 +148,16 @@ def run_command(self,
148
def call_has_props(call, props):
149
"""Check if a call has matching properties of a given props dictionary."""
150
151
- for prop, value in props.items():
152
- call_value = getattr(call, prop)
153
- if call_value != value:
154
- logging.info('%s::%s property mismatch(%s): %r != %r',
155
- call.service,
156
- call.method,
157
- prop,
158
- value,
159
- call_value)
+ for prop, expected_value in props.items():
+ actual_value = getattr(call, prop)
+ if actual_value != expected_value:
+ logging.info(
+ '%s::%s property mismatch, %s: expected=%r; actual=%r',
+ call.service,
+ call.method,
+ prop,
+ expected_value,
160
+ actual_value)
161
return False
162
163
return True
0 commit comments