RequireStatus fails the test if the this response does not have the expected status code.
(status int)
| 75 | |
| 76 | // RequireStatus fails the test if the this response does not have the expected status code. |
| 77 | func (r *boostrapResponse) RequireStatus(status int) { |
| 78 | require.Equal(r.t, status, r.response.StatusCode, "unexpected status code for %s - body: %s", r.url, r.Body) |
| 79 | } |
| 80 | |
| 81 | // AssertResponse asserts the status code and body of the response. |
| 82 | func (r *boostrapResponse) AssertResponse(status int, body string) { |