def METHOD_NAME(self):
    view = ErrorView.as_view()
    request = factory.get('/', content_type='application/json')
    response = view(request)
    expected = 'Error!'
    assert response.status_code == status.HTTP_400_BAD_REQUEST
    assert response.data == expected