

def test_missingJavaScriptClass(self):
    '\n        If a JavaScript class required by the test code is unavailable, an\n        error is added to the result object by L{JavaScriptTestCase.run}.\n        '
    result = TestResult()
    self.case.testMethod = (lambda : 'Nevow.Test.NoSuchModule')
    self.case.run(self)
    self.assertEqual(len(result.errors), 1)

dataset/ETHPy150Open twisted/nevow/nevow/test/test_testutil.py JavaScriptTests.test_missingJavaScriptClass/VarMisuse@36/111 `result`->`self`