

def test_unknown_options_bails(self):
    cmd = commands.Command()
    with self.assertRaises(SystemExit):
        cmd.parse(['--foobar'])

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