def test_suggested_cased_column_names(cased_completer, complete_event):
 text = u'SELECT  from users'
 position = len(u'SELECT ')
 result = set(cased_completer.get_completions(Document(text=text, cursor_position=position), complete_event))
 assert (set(result) == set((((cased_funcs + cased_users_cols) + testdata.builtin_functions()) + testdata.keywords())))

def test_suggested_cased_column_names ( cased_completer , complete_event ) : text = u'SELECT  from users' position = len ( u'SELECT ' ) result = set ( cased_completer . get_completions ( Document ( text = text , cursor_position = position ) , complete_event ) ) assert ( set ( result ) == set ( ( ( ( cased_funcs + cased_users_cols ) + testdata . builtin_functions ( ) ) + testdata . keywords ( ) ) ) )
suggest column and function names when selecting from table .