[Zope-Checkins] CVS: ZODB3/ExtensionClass/test - test_Missing.py:1.1

Jeremy Hylton jeremy@zope.com
Fri, 9 May 2003 17:50:37 -0400


Update of /cvs-repository/ZODB3/ExtensionClass/test
In directory cvs.zope.org:/tmp/cvs-serv23789/test

Added Files:
	test_Missing.py 
Log Message:
Another fix for the coercion bug.

I'm hesitant to see this fix really works, except that I wrote a very
minimal test suite that covers all the cases I'm aware of.  The
previous checkin caused numberic operations when the Missing object
was on the right-hand side.


=== Added File ZODB3/ExtensionClass/test/test_Missing.py ===
from Missing import Value

assert Value != 12
assert 12 != Value
assert u"abc" != Value
assert Value != u"abc"

assert 1 + Value == Value
assert Value + 1 == Value
assert Value == 1 + Value
assert Value == Value + 1