def testAssertionError(self):
        try:
            assert True
            self.assertTrue(True)
        except AssertionError, e:
            self.fail("Got an unexpected assertion error: %r" % e)
        try:
            assert False
            self.fail("AssertionError expected")
        except AssertionError, e:
            self.assertTrue(True)
        try:
            assert False, 'reason'
            self.fail("AssertionError expected")
        except __HOLE__, e:
            self.assertEqual(e.args[0], 'reason')
dataset/ETHPy150Open pyjs/pyjs/examples/libtest/ExceptionTest.py/ExceptionTest.testAssertionError