'Invalid JSON string handled.'

def test_invalid_json(self):

    options = BenchmarkOptions()
    options.parseOptions(['--userdata', '"branch":    "master"'])
    with capture_stderr() as captured_stderr:
        exception = self.assertRaises(SystemExit, parse_userdata, options)
        self.assertIn('Invalid    user    data', exception.args[0])
        self.assertIn(options.getUsage(), captured_stderr())
