Fixed test failure for the default user portrait, which changed from

defaultUser.gif to defaultUser.png in Products.PlonePAS 4.0.5.

svn path=/plone.app.discussion/trunk/; revision=47597
This commit is contained in:
Maurits van Rees 2011-02-15 16:19:13 +00:00
parent 12ccfcdad9
commit 81d74cfe6b
2 changed files with 10 additions and 2 deletions

View File

@ -4,6 +4,10 @@ Changelog
2.0a2 (2011-02-08)
------------------
- Fixed test failure for the default user portrait, which changed from
defaultUser.gif to defaultUser.png in Products.PlonePAS 4.0.5.
[maurits]
- Remove "Plone 3 only" code.
[timo]

View File

@ -431,8 +431,12 @@ class TestCommentsViewlet(PloneTestCase):
self.viewlet.update()
portrait_url = self.viewlet.get_commenter_portrait('jim')
# Check if the correct default member image URL is returned
self.assertEquals(portrait_url, 'http://nohost/plone/defaultUser.gif')
# Check if the correct default member image URL is returned.
# Note that Products.PlonePAS 4.0.5 and later have .png and
# earlier versions have .gif.
self.failUnless(portrait_url in
('http://nohost/plone/defaultUser.png',
'http://nohost/plone/defaultUser.gif'))
def test_anonymous_discussion_allowed(self):
# Anonymous discussion is not allowed by default