make doctest syntax py3 compatible
This commit is contained in:
parent
93a227c80d
commit
e4f798d9d3
@ -17,7 +17,7 @@ Create a collection.
|
|||||||
>>> open('/tmp/testbrowser.html', 'w').write(browser.contents)
|
>>> open('/tmp/testbrowser.html', 'w').write(browser.contents)
|
||||||
>>> browser.getControl('form.widgets.IDublinCore.title').value = 'Foo Comment Collection'
|
>>> browser.getControl('form.widgets.IDublinCore.title').value = 'Foo Comment Collection'
|
||||||
>>> browser.getControl('Save').click()
|
>>> browser.getControl('Save').click()
|
||||||
>>> print browser.contents
|
>>> print(browser.contents)
|
||||||
<...Changes saved...
|
<...Changes saved...
|
||||||
>>> topic_url = browser.url
|
>>> topic_url = browser.url
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ Set the collection criteria.
|
|||||||
... browser.getControl('Add criteria').click()
|
... browser.getControl('Add criteria').click()
|
||||||
... browser.getControl('Comment').selected = True
|
... browser.getControl('Comment').selected = True
|
||||||
... browser.getControl('Save', index=0).click()
|
... browser.getControl('Save', index=0).click()
|
||||||
>>> print browser.contents
|
>>> print(browser.contents)
|
||||||
<...Changes saved...
|
<...Changes saved...
|
||||||
|
|
||||||
View the collection listing.
|
View the collection listing.
|
||||||
@ -66,7 +66,7 @@ Delete the commented content.
|
|||||||
>>> browser.open(urldoc1)
|
>>> browser.open(urldoc1)
|
||||||
>>> browser.getLink('Delete').click()
|
>>> browser.getLink('Delete').click()
|
||||||
>>> browser.getControl('Delete').click()
|
>>> browser.getControl('Delete').click()
|
||||||
>>> print browser.contents
|
>>> print(browser.contents)
|
||||||
<...Doc1 has been deleted...
|
<...Doc1 has been deleted...
|
||||||
|
|
||||||
The comments are no longer in the catalog.
|
The comments are no longer in the catalog.
|
||||||
|
Loading…
Reference in New Issue
Block a user