Add IpAddressRangeField and tests.

Remove tests for things that don't belong in this shared module.
Remove IntranetUser and IntranetGroup from intranet_binder.

They are not really reusable at all.
Don't try to parse non-HTML responses as HTML.

If the response is a SimpleTemplateResponse, ensure that it's rendered.

If the response has no context but it does have a context_data (not sure
why, but this happened to me, on an error response I think), then copy
the context data so that context assertions don't crash.
Store the encrypted and unencrypted passwords for tests in the test case.

Improve error messages if login as a test user fails, e.g. because the
test password doesn't match the one in the fixtures.
Improve error message if non-dictionary passed to assertInDict.

Otherwise it was easy to pass a list, and the error most confusing.
Split absolute_url helper into absolute_url_for_site and absolute_url_for_request.

There are two ways of building an absolute URL in the app: looking at the domain
of the Site record in the database, and looking at the one being accessed by the
current user.

The former often makes most sense to the user, especially if using a
non-standard internal URL or a site that hasn't been fully configured,
but it's not possible when generating an email message outside of a
request context for example, so you need the latter in that case.

Depending on how the URLs were generated by the app, you may need the
test to generate a URL in the same kind of way, that will match, to
prove that the app did it correctly. Before, the way of doing this was
ambiguous, but now it's clear. This breaks backwards compatibility with
tests using the old, ambiguous way.
Allow passing a message to extract_form.

Will be used to clarify the error message, if the form is not found in
the response for some reason.
Allow generating POST data with no value for a RadioSelect widget.

When using this widget, it's possible for the user not to click on any
of the radio buttons before submitting the form, i.e. not to make any
selection, and we need to be able to test what happens in such cases.
Report an error if update_form_values called with unknown form fields.

Just ignoring them leads to broken tests which are hard to debug.
Add code for extracting an error message from the response HTML using xpath.

Not currently working, and don't have time to debug it now.
Simplify sanity check for followed redirect when follow=True not passed to test client.
Add an assertion that the response does not contain a form with errors.

Simplifies tests that would redirect somewhere else if the form is valid.
Rewrite redirect chain sub-assertions for readability.
Remove management command which causes problems when IntranetUser model not used.
Remove migrations relating to removed user model.
Fix runtime error when running tests by suite name.
Add docstring documentation to the patch() decorator.
Disable get_response_with_exception_passthru() message rewriting.

Disguises the original exception origin, and we have a better way now.

Use @patch as a decorator for simplicity and clarity.
Use @patch as a decorator for clarity, and move imports to top of file.
Add missing imports of ValidationError exception class.