

def test_missing_positionals(self):
    cmd = commands.Command()
    cmd.add_argument('bar')
    with self.assertRaises(SystemExit):
        cmd.parse([], prog='foo')
    cmd.exit_mock.assert_called_once_with(1, 'too few arguments', 'usage: foo bar')

dataset/ETHPy150Open mopidy/mopidy/tests/test_commands.py CommandParsingTest.test_missing_positionals/VarMisuse@48/60 `self`->`cmd`