def test_everyone_redirected_to_dashboard(): user = UserFactory() user.is_superuser = True response = get_response(user) assert response.status_code == 302 assert response['Location'] == reverse(u"dashboard")