Skip to content

Commit

Permalink
fix test of album_view (was testing if doc1 appeared in navigation-po…
Browse files Browse the repository at this point in the history
…rtlet)
  • Loading branch information
pbauer committed Apr 7, 2015
1 parent 73a2184 commit 2744223
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion plone/app/contenttypes/tests/test_folder.py
Expand Up @@ -16,6 +16,7 @@
PLONE_APP_CONTENTTYPES_INTEGRATION_TESTING,
PLONE_APP_CONTENTTYPES_FUNCTIONAL_TESTING
)
from plone.app.contenttypes.tests.test_image import dummy_image

from plone.app.testing import TEST_USER_ID, setRoles

Expand Down Expand Up @@ -146,6 +147,13 @@ def test_folder_tabular_view(self):
self.assertTrue('Document 1' in self.browser.contents)

def test_folder_album_view(self):
self.folder.invokeFactory('Image', id='image1', title='Image 1')
img1 = self.folder['image1']
img1.image = dummy_image()
import transaction
transaction.commit()
self.browser.open(self.folder_url + '/album_view')
self.assertTrue('My Folder' in self.browser.contents)
self.assertTrue('Document 1' in self.browser.contents)
self.assertIn(
'<img src="http://nohost/plone/folder/image1/@@images',
self.browser.contents)

0 comments on commit 2744223

Please sign in to comment.