def METHOD_NAME():
    with pytest.raises(pydantic.ValidationError):
        MSSQLDataSource(name='mycon', domain='mydomain', database='ubuntu', query='')
    with pytest.raises(ValueError) as exc_info:
        MSSQLDataSource(name='mycon', domain='mydomain', database='ubuntu')
    assert "'query' or 'table' must be set" in str(exc_info.value)
    ds = MSSQLDataSource(name='mycon', domain='mydomain', database='ubuntu', table='test')
    assert ds.query == 'select * from test;'