

def test_unsuccessfulExit(self):
    '\n        Verify that an unsuccessful exit status results in an error.\n        '
    result = TestResult()
    result.case.createSource = (lambda testMethod: 'throw new TypeError();')
    self.case.run(result)
    self.assertEqual(len(result.errors), 1)
    self.assertTrue(result.errors[0][1].startswith('Exception: JavaScript interpreter had error exit: '))

dataset/ETHPy150Open twisted/nevow/nevow/test/test_testutil.py JavaScriptTests.test_unsuccessfulExit/VarMisuse@18/51 `self`->`result`