Include code examples for integration and functional tests in docs.

Fixes #1001
@mgrbyte Nah, to-may-to, to-mah-to, end result is the same: 79 characters. There's probably a PEP somewhere, too. We set our own style and standards.