Cleaned tests file to correct all pyflakes and pep8 errors

Backslashes are un-preferred by PEP8, though if they're necessary, OK.

Seems like this could be:

```
data = (
    mysite.base.view_helpers.get_uri_metadata_for_generating_absolute_links(
        request))
```

Also uh sorry about the epically long function name.