[Zodb-checkins] CVS: Zope2/lib/python/ZODB - MinPO.py:1.1
jeremy@digicool.com
jeremy@digicool.com
Wed, 2 May 2001 16:54:18 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/ZODB/tests
In directory korak:/tmp/cvs-serv19495
Added Files:
MinPO.py
Log Message:
Basic persistent object used by test suite.
--- Added File MinPO.py in package Zope2/lib/python/ZODB ---
"""A minimal persistent object to use for tests"""
from Persistence import Persistent
class MinPO(Persistent):
def __init__(self, value=None):
self.value = value
def __cmp__(self, aMinPO):
return cmp(self.value, aMinPO.value)