def METHOD_NAME(self):
    request = factory.get('/', content_type='application/json')
    response = self.view(request)
    assert response.status_code == 400
    assert response.data == {'error': 'SyntaxError'}