web/test/unittest_views_pyviews.py
changeset 7992 4ff9f25cb06e
parent 6340 470d8e828fda
child 9806 37931aaebcfc
--- a/web/test/unittest_views_pyviews.py	Fri Oct 21 14:32:37 2011 +0200
+++ b/web/test/unittest_views_pyviews.py	Fri Oct 21 14:32:37 2011 +0200
@@ -1,4 +1,4 @@
-# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
 # This file is part of CubicWeb.
@@ -25,10 +25,9 @@
                                          pyvalue=[[1, 'a'], [2, 'b']])
         content = view.render(pyvalue=[[1, 'a'], [2, 'b']],
                               headers=['num', 'char'])
-        self.assertEqual(content.strip(), '''<table class="listing">
-<thead><tr><th>num</th><th>char</th></tr>
-</thead><tbody><tr><td>1</td><td>a</td></tr>
-<tr><td>2</td><td>b</td></tr>
+        self.assertEqual(content.strip(), '''<table class="listing"><tbody>\
+<tr class="even" onmouseout="$(this).removeClass(&quot;highlighted&quot;)" onmouseover="$(this).addClass(&quot;highlighted&quot;);"><td >1</td><td >a</td></tr>
+<tr class="odd" onmouseout="$(this).removeClass(&quot;highlighted&quot;)" onmouseover="$(this).addClass(&quot;highlighted&quot;);"><td >2</td><td >b</td></tr>
 </tbody></table>''')
 
     def test_pyvallist(self):