

def test_command_arguments(self):
    cmd = commands.Command()
    cmd.add_argument('--bar')
    result = cmd.parse(['--bar', 'baz'])
    self.assertEqual(result.bar, 'baz')

dataset/ETHPy150Open mopidy/mopidy/tests/test_commands.py CommandParsingTest.test_command_arguments/original