def test_standard2():
        "another standard switch -- subclass with more cases"
        switch = AdminCommandSwitch.switch
        x = ''
        for key in case_keys:
            x = switch[key](x[:10])
        assert switch['shutdown']() == 'shutdown'
        assert switch['get-class']() is AdminCommandSwitch
        assert switch[34567]() == 'many_keys'
another standard switch -- subclass with more cases
recipes/Python/577864_Fast_elegant_switchcaselike/recipe-577864.py