def METHOD_NAME(client):
    view_data = {
        'name': 'test_create_view',
        'query': 'SELECT * FROM example_db.house_sales'
    }
    response = client.post('/api/projects/mindsdb/views', json=view_data, follow_redirects=True)
    assert '400' in response.status