Mercurial > pymonkey
diff test_pymonkey.py @ 45:03aec8572461
Python-wrapped JS functions can now return null/None.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Mon, 06 Jul 2009 00:09:42 -0700 |
parents | 5727675b1bcb |
children | a0f677cfc679 |
line wrap: on
line diff
--- a/test_pymonkey.py Sun Jul 05 23:55:42 2009 -0700 +++ b/test_pymonkey.py Mon Jul 06 00:09:42 2009 -0700 @@ -39,6 +39,12 @@ self.assertEqual(self._evalJsWrappedPyFunc(hai2u, 'hai2u()'), u"o hai") + def testJsWrappedPythonFunctionReturnsNone(self): + def hai2u(cx): + pass + self.assertEqual(self._evalJsWrappedPyFunc(hai2u, 'hai2u()'), + None) + def testJsWrappedPythonFunctionReturnsTrue(self): def hai2u(cx): return True