diff test_pymonkey.py @ 13:ca17531e8c81

Added an object class.
author Atul Varma <varmaa@toolness.com>
date Sun, 28 Jun 2009 18:19:14 -0700
parents 032cfc448079
children 9edcdb4ab12d
line wrap: on
line diff
--- a/test_pymonkey.py	Sun Jun 28 17:43:42 2009 -0700
+++ b/test_pymonkey.py	Sun Jun 28 18:19:14 2009 -0700
@@ -9,6 +9,10 @@
         self.assertTrue(isinstance(cx, pymonkey.Context))
         self.assertEqual(cx.get_runtime(), rt)
 
+        obj = cx.new_object()
+        self.assertRaises(TypeError, pymonkey.Object)
+        self.assertTrue(isinstance(obj, pymonkey.Object))
+
     def testUndefinedCannotBeInstantiated(self):
         self.assertRaises(TypeError, pymonkey.undefined)