Skip to content

Commit

Permalink
fix test broken by #19
Browse files Browse the repository at this point in the history
typo
  • Loading branch information
ebrehault committed May 19, 2015
1 parent 8e4fa92 commit 8b4a344
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Products/ATContentTypes/tests/test_portal_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def testCreateObject(self):
self.assertTrue(location.startswith(
self.folder_url + '/portal_factory/Document/'))
# CMFFormController redirects should not do alias translation
self.assertTrue(location.endswith('/edit'))
self.assertTrue('/edit' in location)

# Perform the redirect
edit_form_path = location[len(self.app.REQUEST.SERVER_URL):]
Expand All @@ -244,7 +244,7 @@ def testCreateNonGloballyAllowedObject(self):
location = response.getHeader('Location')
self.assertTrue(location.startswith(
self.folder_url + '/portal_factory/Document/'))
self.assertTrue(location.endswith('/edit'))
self.assertTrue('/edit' in location)

# Perform the redirect
edit_form_path = location[len(self.app.REQUEST.SERVER_URL):]
Expand Down

0 comments on commit 8b4a344

Please sign in to comment.