@@ -0,0 +1,321 @@
+import unittest%0A%0Afrom autoprotocol import UserError%0A%0A%0Aclass TestUserError(unittest.TestCase):%0A    def test_catch(self):%0A        with self.assertRaises(UserError):%0A            raise UserError(%22spam%22)%0A        try:%0A            raise UserError(%22eggs%22)%0A        except UserError as e:%0A            self.assertIn(%22eggs%22, str(e))%0A

Test UserException