changeset 82:8dfcaabaee15

Update tests to reflect changes in HTML markup.
author Daniele Nicolodi <daniele@grinta.net>
date Sun, 21 Aug 2011 16:08:21 +0200
parents 4bc420e70b51
children da7cab4398c3
files src/ltpdarepo/tests/browse-user.txt src/ltpdarepo/tests/manage-databases.txt src/ltpdarepo/tests/manage-users.txt
diffstat 3 files changed, 9 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/src/ltpdarepo/tests/browse-user.txt	Sun Aug 21 16:01:25 2011 +0200
+++ b/src/ltpdarepo/tests/browse-user.txt	Sun Aug 21 16:08:21 2011 +0200
@@ -36,7 +36,7 @@
     >>> browser.url
     'http://localhost/user/u1/edit'
     >>> browser.contents
-    '...<li>This field is required.</li>...'
+    '...<span class="error">This field is required.</span>...'
 
 Set email too::
 
--- a/src/ltpdarepo/tests/manage-databases.txt	Sun Aug 21 16:01:25 2011 +0200
+++ b/src/ltpdarepo/tests/manage-databases.txt	Sun Aug 21 16:08:21 2011 +0200
@@ -33,7 +33,7 @@
     >>> browser.url
     'http://localhost/manage/databases/'
     >>> browser.contents
-    '...<div class="flash message">Database &#34;database1&#34; created.</div>...'
+    '...<div class="flash message">Database "database1" created.</div>...'
 
 View database::
 
@@ -52,7 +52,7 @@
     >>> browser.url
     'http://localhost/manage/databases/database1'
     >>> browser.contents
-    '...<div class="flash message">Database &#34;database1&#34; modified.</div>...'
+    '...<div class="flash message">Database "database1" modified.</div>...'
     >>> browser.contents
     '...<p class="field"><span class="label">Description:</span> Test Database One</p>...'
 
@@ -65,7 +65,7 @@
     >>> browser.url
     'http://localhost/manage/databases/+'
     >>> browser.contents
-    '...<li>MySQL already contains a datbase with this ID.</li>...'
+    '...<span class="error">MySQL already contains a datbase with this ID.</span>...'
 
 or with the id of a system database::
 
@@ -74,7 +74,7 @@
     >>> browser.url
     'http://localhost/manage/databases/+'
     >>> browser.contents
-    '...<li>MySQL already contains a datbase with this ID.</li>...'
+    '...<span class="error">MySQL already contains a datbase with this ID.</span>...'
 
 Drop operation can be cancelled::
 
@@ -97,5 +97,5 @@
     >>> browser.url
     'http://localhost/manage/databases/'
     >>> browser.contents
-    '...<div class="flash message">Database &#34;database1&#34; deleted.</div>...'
+    '...<div class="flash message">Database "database1" deleted.</div>...'
 
--- a/src/ltpdarepo/tests/manage-users.txt	Sun Aug 21 16:01:25 2011 +0200
+++ b/src/ltpdarepo/tests/manage-users.txt	Sun Aug 21 16:08:21 2011 +0200
@@ -34,7 +34,7 @@
     >>> browser.url
     'http://localhost/manage/users/'
     >>> browser.contents
-    '...<div class="flash message">User &#34;user1&#34; created.</div>...'
+    '...<div class="flash message">User "user1" created.</div>...'
 
 View user::
 
@@ -122,7 +122,7 @@
     >>> browser.url
     'http://localhost/manage/users/+'
     >>> browser.contents
-    '...<li>MySQL already contains an user with this username.</li>...'
+    '...<span class="error">MySQL already contains an user with this username.</span>...'
 
 or with a system username::
 
@@ -132,4 +132,4 @@
     >>> browser.url
     'http://localhost/manage/users/+'
     >>> browser.contents
-    '...<li>MySQL already contains an user with this username.</li>...'
+    '...<span class="error">MySQL already contains an user with this username.</span>...'