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())
Overrides the default SetValue method to emit proper events.
dataset/ETHPy150Open ClusterHQ/flocker/benchmark/test/test_script.py/UserDataTests.test_invalid_json--crossover with--dataset/ETHPy150Open ContinuumIO/ashiba/enaml/enaml/wx/wx_check_box.py/wxProperCheckBox.SetValue