Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroel committed Jun 23, 2015
1 parent eb1c410 commit 9f7201c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/plone/api/tests/test_content.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,11 +662,13 @@ def test_find_depth(self):
def test_find_interface(self):
# Find documents by interface or it's identifier
identifier = IContentish.__identifier__
documents = api.content.find(object_provides=identifier)
self.assertEqual(len(documents), 8)
brains = api.content.find(object_provides=identifier)
by_identifier = [x.getObject() for x in brains]

documents = api.content.find(object_provides=IContentish)
self.assertEqual(len(documents), 8)
brains = api.content.find(object_provides=IContentish)
by_interface = [x.getObject() for x in brains]

self.assertEqual(by_identifier, by_interface)

def test_find_dict(self):
# Pass arguments using dict
Expand Down

0 comments on commit 9f7201c

Please sign in to comment.