Skip to content
This repository has been archived by the owner on Apr 9, 2023. It is now read-only.

Commit

Permalink
Changing from modified time to created time because modified is autom…
Browse files Browse the repository at this point in the history
…atic modified
  • Loading branch information
Ramon Navarro Bosch committed Dec 27, 2016
1 parent acb454d commit bb6302f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plone.server/plone/server/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,15 @@ def test_create_contenttype_with_date(self):
'/plone/plone/item1',
data=json.dumps({
"plone.server.behaviors.dublincore.IDublinCore": {
"modified": date_to_test
"created": date_to_test
}
})
)

root = self.layer.new_root()
obj = root['plone']['item1']
from plone.server.behaviors.dublincore import IDublinCore
self.assertEqual(IDublinCore(obj).modified.isoformat(), date_to_test)
self.assertEqual(IDublinCore(obj).created.isoformat(), date_to_test)

def test_create_duplicate_id(self):
"""Try to create a contenttype."""
Expand Down

0 comments on commit bb6302f

Please sign in to comment.