Convert yml to python test case

Hello

I have converted yml to python test case.

thanks.
No need to define a variable, if it is used once.