def test_failAndTrap(self):
    '\n        Trapping a L{Failure}.\n        '
    try:
        raise NotImplementedError('test')
    except:
        f = failure.Failure()
    error = f.trap(SystemExit, RuntimeError)
    self.assertEqual(error, RuntimeError)
    self.assertEqual(f.type, NotImplementedError)
Trapping a L{Failure}.
def test_failAndTrap(self):
    '\n        \n        '
    try:
        raise NotImplementedError('test')
    except:
        f = failure.Failure()
    error = f.trap(SystemExit, RuntimeError)
    self.assertEqual(error, RuntimeError)
    self.assertEqual(f.type, NotImplementedError)