assertContains performs additional assertion such as the status code of the
request and provides a way to perform comparison based on HTML semantic
instead of character-by-character equality. Under the hood it also handles
streaming and deferred response gracefully.
I suggest you take a look at
the documentation for a technical reference and
at
the source code for the implementation details.
Simon