'When authentication fails the renderer should still be able to access
`request.user` without raising an exception. Particularly relevant
to HTML responses that might reasonably access `request.user`.'

def test_failing_auth_accessed_in_renderer(self):

    request = factory.get(u'/')
    response = self.view(request)
    content = response.render().content
    assert (content == 'not    authenticated')
