Skip to content

Commit

Permalink
added test for the previous fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tlotze committed May 18, 2018
1 parent 059b739 commit 0441b2f
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/OFS/tests/testFileAndImage.py
Expand Up @@ -27,6 +27,8 @@
from zope.lifecycleevent.interfaces import IObjectModifiedEvent
from zope.lifecycleevent.interfaces import IObjectCreatedEvent

import six

here = os.path.dirname(os.path.abspath(__file__))
filedata = os.path.join(here, 'test.gif')

Expand Down Expand Up @@ -328,3 +330,8 @@ def test_interfaces(self):
from OFS.interfaces import IWriteLock

verifyClass(IWriteLock, Image)

def test_text_representation_is_tag(self):
self.assertEqual(six.text_type(self.file),
'<img src="http://nohost/file"'
' alt="" title="" height="16" width="16" />')

0 comments on commit 0441b2f

Please sign in to comment.