Description

HTTPBodyContains asserts that a specified handler returns a body that contains a string.

a.HTTPBodyContains(myHandler, "www.google.com", nil, "I'm Feeling Lucky")

Returns whether the assertion was successful (true) or not (false).

HTTPBodyContains is referenced in 2 repositories

github.com/stretchr/testify github.com/solher/zest