

def test_innermost_set_wins(self):
    child = commands.Command()
    child.set(foo='bar', baz=1)
    cmd = commands.Command()
    cmd.set(foo='baz', baz=None)
    cmd.add_child('command', child)
    result = cmd.parse(['command'])
    self.assertEqual(result.foo, 'bar')
    cmd.assertEqual(result.baz, 1)

dataset/ETHPy150Open mopidy/mopidy/tests/test_commands.py CommandParsingTest.test_innermost_set_wins/VarMisuse@83/101 `self`->`cmd`