def METHOD_NAME(self):
    # Make sure that if interrupt_main is called in main threat that
    # KeyboardInterrupt is raised instantly.
    self.assertRaises(KeyboardInterrupt, _thread.interrupt_main)