def test_suggested_multiple_column_names_with_alias(completer, complete_event):
    text = 'SELECT u.id, u. from users u'
    position = len('SELECT u.id, u.')
    result = set(completer.get_completions(
        Document(text=text, cursor_position=position),
        complete_event))
    assert set(result) == set([
        Completion(text='*', start_position=0, display_meta='column'),
        Completion(text='id', start_position=0, display_meta='column'),
        Completion(text='email', start_position=0, display_meta='column'),
        Completion(text='first_name', start_position=0, display_meta='column'),
        Completion(text='last_name', start_position=0, display_meta='column')])
Suggest column names on table alias and dot
dataset/ETHPy150Open dbcli/pgcli/tests/test_smart_completion_public_schema_only.py/test_suggested_multiple_column_names_with_alias