RA
Size: a a a
RA
RA
AP
class A:
def f1(self):
raise Exception('hello')
class ATestCase(TestCase):
def test_f1(self):
instance = A()
with self.assertRaises(Exception) as exc:
instance.f1()
self.assertEqual(
exc.exception.messages, ['hello'])
AP
AP
RA
MB
RA
RA
A
RA
class A:
def f1(self):
raise Exception('hello')
class ATestCase(TestCase):
def test_f1(self):
instance = A()
with self.assertRaises(Exception) as exc:
instance.f1()
self.assertEqual(
exc.exception.messages, ['hello'])
RA
RA
UN
AG