예제 #1
0
def test_c_suggests_databases(command):
    suggestions = suggest_type(command, command)
    assert suggestions == (Database(),)
예제 #2
0
def test_create_db_with_template():
    suggestions = suggest_type('create database foo with template ',
                               'create database foo with template ')

    assert set(suggestions) == set((Database(), ))
예제 #3
0
def test_create_db_with_template():
    suggestions = suggest_type(
        "create database foo with template ", "create database foo with template "
    )

    assert set(suggestions) == {Database()}