def testPassingClassTypeSucceeds(self): h = JPackage("jpype.objectwrapper").Test1() # Select a convenient java.lang.Class object class_obj = h.getClass() # Check that funneling Class obj through java doesn't convert to null result = h.ReturnObject(class_obj) self.assertEqual(class_obj, result) self.assertNotEqual(result, None)