def METHOD_NAME():
    """
    Tests that the right exceptions are raised when QueryBuilder fails to initialise
    """
    # Raises error with wrong input
    with pytest.raises(QueryBuilderError) as exc_info:
        QueryBuilder(1)
    # Check error message
    assert exc_info.match(
        r"^Invalid query_type parameter! Valid parameter includes 0.$")