Commit 707dc138 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki Committed by Jérome Perrin

fixup! web, PortalTransforms: py3

parent de0042b4
...@@ -1058,7 +1058,7 @@ Hé Hé Hé!""", page.asText().strip()) ...@@ -1058,7 +1058,7 @@ Hé Hé Hé!""", page.asText().strip())
self.assertIn(b'<p>initial text</p>', response.getBody()) self.assertIn(b'<p>initial text</p>', response.getBody())
# modified the web_page content # modified the web_page content
document.edit(text_content='<p>modified text<p>') document.edit(text_content='<p>modified text</p>')
self.assertEqual(document.asText().strip(), 'modified text') self.assertEqual(document.asText().strip(), 'modified text')
self.tic() self.tic()
...@@ -1066,12 +1066,12 @@ Hé Hé Hé!""", page.asText().strip()) ...@@ -1066,12 +1066,12 @@ Hé Hé Hé!""", page.asText().strip())
# Through the web_site. # Through the web_site.
path = website.absolute_url_path() + '/NXD-Document.Cache' path = website.absolute_url_path() + '/NXD-Document.Cache'
response = self.publish(path, self.credential) response = self.publish(path, self.credential)
self.assertIn(b'<p>modified</p>', response.getBody()) self.assertIn(b'<p>modified text</p>', response.getBody())
# Through a web_section. # Through a web_section.
path = web_section.absolute_url_path() + '/NXD-Document.Cache' path = web_section.absolute_url_path() + '/NXD-Document.Cache'
response = self.publish(path, self.credential) response = self.publish(path, self.credential)
self.assertIn(b'<p>modified</p>', response.getBody()) self.assertIn(b'<p>modified text</p>', response.getBody())
def test_13a_DocumentMovedCache(self): def test_13a_DocumentMovedCache(self):
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment