func (r *Response) AssertBodyMatches(pattern string) {
	restore := r.assert.IncrCallstackOffset()
	defer restore()
	ok, err := regexp.MatchString(pattern, string(r.Body))
	r.assert.Nil(err, "illegal content match pattern")
	r.assert.True(ok, "body doesn't match pattern")
}
// AssertBodyMatches checks if the body matches a regular expression.
AssertBodyMatches checks if the body matches a regular expression.
// AssertBodyMatches checks if the body matches a regular expression .
func (r *Response) AssertBodyMatches(pattern string) {
	restore := r.assert.IncrCallstackOffset()
	defer restore()
	ok, err := regexp.MatchString(pattern, string(r.Body))
	r.assert.Nil(err, "illegal content match pattern")
	r.assert.True(ok, "body doesn't match pattern")
}
func ( r * Response ) AssertBodyMatches ( pattern string ) { restore := r . assert . IncrCallstackOffset ( ) defer restore ( ) ok , err := regexp . MatchString ( pattern , string ( r . Body ) ) r . assert . Nil ( err , " " ) r . assert . True ( ok , " " ) }
AssertBodyMatches checks if the body matches a regular expression.
AssertBodyMatches checks if the body matches a regular expression .