def test_c_suggests_databases(command): suggestions = suggest_type(command, command) assert suggestions == (Database(),)
def test_create_db_with_template(): suggestions = suggest_type('create database foo with template ', 'create database foo with template ') assert set(suggestions) == set((Database(), ))
def test_create_db_with_template(): suggestions = suggest_type( "create database foo with template ", "create database foo with template " ) assert set(suggestions) == {Database()}