[Zope-CVS] CVS: PythonNet/tests/python - test_conversion.py:1.2 test_delegate.py:1.2
Brian Lloyd
brian@zope.com
Mon, 14 Jul 2003 14:34:28 -0400
Update of /cvs-repository/PythonNet/tests/python
In directory cvs.zope.org:/tmp/cvs-serv23137/tests/python
Modified Files:
test_conversion.py test_delegate.py
Log Message:
checkin decoy removal from last week
=== PythonNet/tests/python/test_conversion.py 1.1 => 1.2 ===
--- PythonNet/tests/python/test_conversion.py:1.1 Mon Feb 17 22:44:38 2003
+++ PythonNet/tests/python/test_conversion.py Mon Jul 14 14:34:21 2003
@@ -615,7 +615,7 @@
def testStringConversion(self):
"""Test string / unicode conversion."""
object = ConversionTest()
- #import pdb; pdb.set_trace()
+
self.failUnless(object.StringField == "spam")
self.failUnless(object.StringField == u"spam")
@@ -623,18 +623,18 @@
self.failUnless(object.StringField == "eggs")
self.failUnless(object.StringField == u"eggs")
-## object.StringField = u"spam"
-## self.failUnless(object.StringField == "spam")
-## self.failUnless(object.StringField == u"spam")
-## object.StringField = u'\uffff\uffff'
-## self.failUnless(object.StringField == u'\uffff\uffff')
+ object.StringField = u"spam"
+ self.failUnless(object.StringField == "spam")
+ self.failUnless(object.StringField == u"spam")
+
+ object.StringField = u'\uffff\uffff'
+ self.failUnless(object.StringField == u'\uffff\uffff')
object.StringField = System.String("spam")
self.failUnless(object.StringField == "spam")
self.failUnless(object.StringField == u"spam")
object.StringField = System.String(u'\uffff\uffff')
- print object.StringField == u'\uffff\uffff', `object.StringField`
self.failUnless(object.StringField == u'\uffff\uffff')
object.StringField = None
=== PythonNet/tests/python/test_delegate.py 1.1 => 1.2 ===
--- PythonNet/tests/python/test_delegate.py:1.1 Mon Feb 17 22:44:38 2003
+++ PythonNet/tests/python/test_delegate.py Mon Jul 14 14:34:21 2003
@@ -223,6 +223,7 @@
self.failUnless(ob.CallStringDelegate(ob.stringDelegate) == "hello")
self.failUnless(ob.stringDelegate() == "hello")
+ # test async delegates
# test d as event handler