Changeset 7942 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 22 Mar 2012, 01:52:04 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/utils/tests/test_helpers.py
r7940 r7942 26 26 from cStringIO import StringIO 27 27 from zope import schema 28 from zope.interface import Interface, Attribute 28 from zope.interface import Interface, Attribute, implements 29 29 from zope.security.testing import Principal, Participation 30 30 from zope.security.management import newInteraction, endInteraction 31 31 from waeup.kofa.utils import helpers 32 32 33 from zope.interface import Interface, implements34 33 class IFakeObject(Interface): 35 34 """Some marker interface.""" … … 209 208 p1 = os.path.join(self.workdir, 'sample1') 210 209 p2 = os.path.join(self.workdir, 'sample2') 211 f1 =open(p1, 'wb').write('Hi!')212 f2 =open(p2, 'wb').write('Hi!')210 open(p1, 'wb').write('Hi!') 211 open(p2, 'wb').write('Hi!') 213 212 assert helpers.cmp_files(open(p1, 'r'), open(p2, 'r')) is True 214 213 … … 216 215 p1 = os.path.join(self.workdir, 'sample1') 217 216 p2 = os.path.join(self.workdir, 'sample2') 218 f1 =open(p1, 'wb').write('Hi!')219 f2 =open(p2, 'wb').write('Ho!')217 open(p1, 'wb').write('Hi!') 218 open(p2, 'wb').write('Ho!') 220 219 assert helpers.cmp_files(open(p1, 'r'), open(p2, 'r')) is False 221 220
Note: See TracChangeset for help on using the changeset viewer.