def testShowMessageWithError(self):
     def f(prompt):
         raise Exception("Doesn't work.")
     rinterface.set_showmessage(f)
 def testSetShowMessage(self):
     def f(message):
         return "foo"
     rinterface.set_showmessage(f)