fix commenter portrait tests, since get_commenter_portrait returns a URL instead of an image now.
svn path=/plone.app.discussion/trunk/; revision=27458
This commit is contained in:
parent
e8ce114f4b
commit
886fe17b47
@ -59,11 +59,10 @@ class CommentsViewletTest(PloneTestCase):
|
|||||||
|
|
||||||
# Call get_commenter_portrait method of the viewlet
|
# Call get_commenter_portrait method of the viewlet
|
||||||
self.viewlet.update()
|
self.viewlet.update()
|
||||||
portrait = self.viewlet.get_commenter_portrait('jim')
|
portrait_url = self.viewlet.get_commenter_portrait('jim')
|
||||||
|
|
||||||
# Check if the correct member image is returned
|
# Check if the correct member image URL is returned
|
||||||
self.assert_(isinstance(portrait, Image))
|
self.assertEquals(portrait_url, 'http://nohost/plone/portal_memberdata/portraits/jim')
|
||||||
self.assertEquals(portrait.absolute_url(), 'http://nohost/plone/portal_memberdata/portraits/jim')
|
|
||||||
|
|
||||||
def test_get_commenter_portrait_without_userimage(self):
|
def test_get_commenter_portrait_without_userimage(self):
|
||||||
|
|
||||||
@ -82,11 +81,10 @@ class CommentsViewletTest(PloneTestCase):
|
|||||||
|
|
||||||
# Call get_commenter_portrait method of the viewlet
|
# Call get_commenter_portrait method of the viewlet
|
||||||
self.viewlet.update()
|
self.viewlet.update()
|
||||||
portrait = self.viewlet.get_commenter_portrait('jim')
|
portrait_url = self.viewlet.get_commenter_portrait('jim')
|
||||||
|
|
||||||
# Check if the correct default member image is returned
|
# Check if the correct default member image URL is returned
|
||||||
self.assert_(isinstance(portrait, FSImage))
|
self.assertEquals(portrait_url, 'http://nohost/plone/defaultUser.gif')
|
||||||
self.assertEquals(portrait.absolute_url(), 'http://nohost/plone/defaultUser.gif')
|
|
||||||
|
|
||||||
def test_get_commenter_home(self):
|
def test_get_commenter_home(self):
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user