def METHOD_NAME(self):
    # Test that exceptions derived from BaseException are formatted right
    e = KeyboardInterrupt()
    lst = traceback.format_exception_only(e.__class__, e)
    self.assertEqual(lst, ['KeyboardInterrupt\n'])