"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/OFS/tests/test_event.py" between
Zope-5.1.1.tar.gz and Zope-5.1.2.tar.gz

About: Zope Z Object Publishing Environment - web application platform used for building content management systems, intranets, portals, and custom applications.

test_event.py  (Zope-5.1.1):test_event.py  (Zope-5.1.2)
skipping to change at line 16 skipping to change at line 16
# This software is subject to the provisions of the Zope Public License, # This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE. # FOR A PARTICULAR PURPOSE.
# #
############################################################################## ##############################################################################
"""Test events """Test events
""" """
# These classes aren't defined in the doctest because otherwise
# they wouldn't be picklable, and we need that to test copy/paste.
from OFS.Folder import Folder from OFS.Folder import Folder
from OFS.OrderedFolder import OrderedFolder from OFS.OrderedFolder import OrderedFolder
from OFS.SimpleItem import SimpleItem from OFS.SimpleItem import SimpleItem
from zope.component import eventtesting from zope.component import eventtesting
from zope.component import testing from zope.component import testing
def setUp(test): def setUp(test):
testing.setUp(test) testing.setUp(test)
eventtesting.setUp(test) eventtesting.setUp(test)
# These classes aren't defined in the doctest because otherwise
# they wouldn't be picklable, and we need that to test copy/paste.
class DontComplain: class DontComplain:
def _verifyObjectPaste(self, object, validate_src=1): def _verifyObjectPaste(self, object, validate_src=1):
pass pass
def cb_isMoveable(self): def cb_isMoveable(self):
return True return True
def cb_isCopyable(self): def cb_isCopyable(self):
return True return True
 End of changes. 2 change blocks. 
4 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)