def METHOD_NAME(client):
    mindsdb_data = {
        'database': {
            'name': 'test_postgres',
            'engine': 'postgres',
            'parameters': {}
        }
    }
    response = client.post('/api/databases', json=mindsdb_data, follow_redirects=True)
    # Make sure we use the CREATED HTTP status code.
    assert '201' in response.status
    new_db = response.get_json()
    expected_db = {
        'name': 'test_postgres',
        'engine': 'postgres',
        'type': 'data',
        'id': new_db['id']
    }
    assert new_db == expected_db