

def test_unknown_command(self):
    cmd = commands.Command()
    with self.assertRaises(SystemExit):
        cmd.parse(['--help'], prog='foo')
    self.exit_mock.assert_called_once_with(1, 'unrecognized arguments: --help', 'usage: foo')

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