def test_dict_based_with_get():
        "ordinary-dict-based switch + dict.get()-based default case support"
        switch = DictBasedSwitch.switch
        default_case = DictBasedSwitch.get_default_case()
        x = ''
        for key in case_keys:
            x = switch.get(key, default_case)(x[:10])
ordinary-dict-based switch + dict.get()-based default case support
recipes/Python/577864_Fast_elegant_switchcaselike/recipe-577864.py