Commits

Bob Ippolito committed 244c6df

loaded test for ExceptionHandling framework

  • Participants
  • Parent commits f1b6099
  • Branches pyobjc-ancient

Comments (0)

Files changed (2)

Lib/ExceptionHandling/test/__init__.py

Empty file added.

Lib/ExceptionHandling/test/test_loaded.py

+"""
+ExceptionHandling doesn't add 'interesting' behaviour, just check that the 
+module loaded correctly.
+"""
+
+import unittest
+import objc
+
+class EHTest (unittest.TestCase):
+
+
+    def testClasses(self):
+        import ExceptionHandling
+
+        # Check that we loaded the PreferencePanes framework by looking for a
+        # class that should exist
+        self.assert_(hasattr(ExceptionHandling, 'NSExceptionHandler'))
+        self.assert_(isinstance(ExceptionHandling.NSExceptionHandler, objc.objc_class))
+
+if __name__ == "__main__":
+    unittest.main()