> LGTM with two caveats/comments.
>
> 1- Would .format() syntax be clearer/nicer? (I prefer .format but don't mind
> old % syntax)
> 2- If response is big, this will cause horrid test output spew. It might be
> desirable, or may not. Not sure there's a good alternative :/ truncating it
> might risk losing the actual part in conflict.
FWIW, the original code already output the response content, with potential spew. This change just adds the actual/expected response code too.
Having said that, truncating seems harmless. Worse case, for massive responses, the dev will need to do some more investigation.
> LGTM with two caveats/comments.
>
> 1- Would .format() syntax be clearer/nicer? (I prefer .format but don't mind
> old % syntax)
> 2- If response is big, this will cause horrid test output spew. It might be
> desirable, or may not. Not sure there's a good alternative :/ truncating it
> might risk losing the actual part in conflict.
FWIW, the original code already output the response content, with potential spew. This change just adds the actual/expected response code too.
Having said that, truncating seems harmless. Worse case, for massive responses, the dev will need to do some more investigation.