def METHOD_NAME(dlg_switcher, qtbot):
    """Test filter and mode change."""
    edit = dlg_switcher.edit
    # Initially cvs mode with five rows
    assert dlg_switcher.count() == 6
    # Match one row by name
    edit.setText("master")
    qtbot.wait(1000)
    assert dlg_switcher.count() == 2
    # Help mode
    edit.setText("")
    qtbot.wait(1000)
    edit.setText("?")
    qtbot.wait(1000)
    assert dlg_switcher.count() == 5
    # Symbol mode
    edit.setText("")
    qtbot.wait(1000)
    edit.setText("@")
    qtbot.wait(1000)
    assert dlg_switcher.count() == 2
    # Commands mode
    edit.setText("")
    qtbot.wait(1000)
    edit.setText(">")
    qtbot.wait(1000)
    assert dlg_switcher.count() == 7
    # Text mode
    edit.setText("")
    qtbot.wait(1000)
    edit.setText(":")
    qtbot.wait(1000)
    assert dlg_switcher.count() == 1