Exemple #1
0
def DefinedSubcommands_RemoveStopServerSubcommand_test(subcommands_map):
    completer = DummyCompleter(DefaultOptions())
    eq_(completer.DefinedSubcommands(), ['Foo'])
def DefinedSubcommands_RemoveStopServerSubcommand_test(subcommands_map):
    completer = DummyCompleter(DefaultOptions())
    assert_that(completer.DefinedSubcommands(), contains_exactly('Foo'))
Exemple #3
0
def _FilterAndSortCandidates_Match(candidates, query, expected_matches):
    completer = DummyCompleter(DefaultOptions())
    matches = completer.FilterAndSortCandidates(candidates, query)
    eq_(expected_matches, matches)
def _FilterAndSortCandidates_Match(candidates, query, expected_matches):
    completer = DummyCompleter(DefaultOptions())
    matches = completer.FilterAndSortCandidates(candidates, query)
    assert_that(expected_matches, equal_to(matches))