Skip to content

Commit

Permalink
fixup! Enable history page for OFS.Image.File
Browse files Browse the repository at this point in the history
add some assertions on the html returned by manage_historyCompare
  • Loading branch information
perrinjerome committed Nov 17, 2018
1 parent 3d6f56e commit d8b1238
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/OFS/tests/testFileAndImage.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,13 +304,15 @@ def testFindFile(self):

def testHistoryCompare(self):
self.file.manage_edit('a', 'text/plain',
filedata='a')
filedata='content_of_a')
getattr(self.app, self.factory)('b',
file='b', content_type='text/plain')
self.file.manage_historyCompare(
file='content_of_b', content_type='text/plain')
page = self.file.manage_historyCompare(
self.file,
self.app.b,
self.app.REQUEST)
self.assertTrue('content_of_a' in page)
self.assertTrue('content_of_b' in page)

def test_interfaces(self):
from zope.interface.verify import verifyClass
Expand Down

0 comments on commit d8b1238

Please sign in to comment.