def switch_case_test():
def one():
print 'one'
def two():
print 'two'
def three():
print 'three'
cases = {
'one': one,
'two': two,
'three': three,
}
test = 'one'
cases[test]()
switch_case_test()