devtools/test/unittest_qunit.py
branchstable
changeset 6340 470d8e828fda
parent 5742 74c19dac29cf
child 8930 6a02be304486
equal deleted inserted replaced
6339:bdc3dc94d744 6340:470d8e828fda
    18                    )
    18                    )
    19 
    19 
    20 
    20 
    21     def test_simple_failure(self):
    21     def test_simple_failure(self):
    22         js_tests = list(self._test_qunit(js('test_simple_failure.js')))
    22         js_tests = list(self._test_qunit(js('test_simple_failure.js')))
    23         self.assertEquals(len(js_tests), 3)
    23         self.assertEqual(len(js_tests), 3)
    24         test_1, test_2, test_3 = js_tests
    24         test_1, test_2, test_3 = js_tests
    25         self.assertRaises(self.failureException, test_1[0], *test_1[1:])
    25         self.assertRaises(self.failureException, test_1[0], *test_1[1:])
    26         self.assertRaises(self.failureException, test_2[0], *test_2[1:])
    26         self.assertRaises(self.failureException, test_2[0], *test_2[1:])
    27         test_3[0](*test_3[1:])
    27         test_3[0](*test_3[1:])
    28 
    28