changeset 2:2c9d655fe0ab

Test drop database action cancellation.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 15 Jun 2011 11:04:25 +0200
parents 2b7f9772585a
children 92d05dfff3aa
files src/ltpdarepo/tests/manage-databases.txt
diffstat 1 files changed, 12 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/ltpdarepo/tests/manage-databases.txt	Mon Jun 27 16:28:23 2011 +0200
+++ b/src/ltpdarepo/tests/manage-databases.txt	Wed Jun 15 11:04:25 2011 +0200
@@ -56,6 +56,17 @@
     >>> browser.contents
     '...<p class="field"><span class="label">Description:</span> Test Database One</p>...'
 
+Drop operation can be cancelled::
+
+    >>> browser.getLink('Drop').click()
+    >>> browser.url
+    'http://localhost/manage/databases/database1/drop'
+    >>> browser.getControl(name='cancel').click()
+    >>> browser.url
+    'http://localhost/manage/databases/database1'
+    >>> browser.contents
+    '...<div class="flash message">Operation cancelled.</div>...'
+
 Drop database::
 
     >>> browser.getLink('Drop').click()
@@ -66,3 +77,4 @@
     'http://localhost/manage/databases/'
     >>> browser.contents
     '...<div class="flash message">Database &#34;database1&#34; deleted.</div>...'
+