I am facing a problem where python behave is parsing a step definition weird when one of my parameter I am passing is a part of the step sentence itself.
Here is the step definition
@when(u'I set the value of {setting} to {value} in configuration')
def **step_imp**(context, setting, value):
print ("Setting:", setting , " Value:", value)
pass
My feature sample look like
Scenario: Configuration Update
Given I can access the configuration file
When I set the value of **CDROM Drive** to **G:** in configuration
When I set the value of **USB TO IGNORE** to **USB2.0** in configuration
It works for the first when statement. But for 2nd When statement, the behave parser parses and gives the parameter {setting} as USB and {value} as USB2.0. Since "to" is a word which is part of the step itself, when parsing USB TO IGNORE the behave parser ignores words from "TO".
Any possible solutions without omitting the spaces in the parameters? Thanks