'Verify logging out redirects the user to the homepage.'

def assert_logout_redirects_to_root(self):

    response = self.client.get(reverse('logout'))
    self.assertRedirects(response, '/', fetch_redirect_response=False)
