Skip to content

Commit

Permalink
Merge cb25f5c into 2626aa4
Browse files Browse the repository at this point in the history
  • Loading branch information
idgserpro committed Aug 14, 2018
2 parents 2626aa4 + cb25f5c commit 9466e31
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/plone/api/tests/test_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,22 @@ def test_create_at_with_title_in_request(self):

self.assertEqual(page.title, 'Test document')

@unittest.skipIf(HAS_PACONTENTYPES, 'Archetypes only')
def test_create_at_collection(self):
"""Test create at Collecition."""
collection = api.content.create(
container=self.portal,
type='Collection',
title='Mandelbrot set',
description='Image gallery of a zoom sequence',
query=[{
'i': 'Type',
'o': 'plone.app.querystring.operation.string.is',
'v': ['Image'],
}],
)
self.assertEqual(collection.Title(), 'Mandelbrot set')

def test_get_constraints(self):
"""Test the constraints when content is fetched with get."""

Expand Down

0 comments on commit 9466e31

Please sign in to comment.