Include code examples for integration and functional tests in docs.

Fixes #1001
@mgrbyte Please rewrap all lines to 79 columns, per [Coding Style](http://docs.pylonsproject.org/en/latest/community/codestyle.html#coding-style).