def test_print_inputerror(self): self.assertEqual(str(tools.InputError("Foo bar")), "'Foo bar'")
def foo(): raise tools.InputError("Foo bar")