

def test_update_userdata__with_cmdline_defines(self):
    config = Configuration('-D person2=Bea', load_config=False)
    config.userdata = UserData(person1='AAA', person3='Charly')
    config.update_userdata(dict(person1='Alice', person2='Bob'))
    expected_data = dict(person1='Alice', person2='Bea', person3='Charly')
    eq_(config.userdata, expected_data)
    eq_(config.userdata_defines, [('person2', 'Bea')])

dataset/ETHPy150Open behave/behave/test/test_configuration.py TestConfigurationUserData.test_update_userdata__with_cmdline_defines/original