[test] fix failures introduced by 7951:b7c825b00f64
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 21 Oct 2011 09:24:48 +0200
changeset 7980 c85bea091a6c
parent 7979 8bd5031e2201
child 7981 676fd5b30c6a
[test] fix failures introduced by 7951:b7c825b00f64
entities/test/unittest_base.py
sobjects/test/unittest_notification.py
web/test/unittest_breadcrumbs.py
--- a/entities/test/unittest_base.py	Fri Oct 21 09:24:29 2011 +0200
+++ b/entities/test/unittest_base.py	Fri Oct 21 09:24:48 2011 +0200
@@ -49,7 +49,7 @@
         self.assertEqual(entity.dc_creator(), u'member')
 
     def test_type(self):
-        self.assertEqual(self.member.dc_type(), 'cwuser')
+        self.assertEqual(self.member.dc_type(), 'CWUser')
 
     def test_entity_meta_attributes(self):
         # XXX move to yams
--- a/sobjects/test/unittest_notification.py	Fri Oct 21 09:24:29 2011 +0200
+++ b/sobjects/test/unittest_notification.py	Fri Oct 21 09:24:48 2011 +0200
@@ -99,7 +99,7 @@
 
 url: http://testing.fr/cubicweb/cwuser/toto
 ''')
-        self.assertEqual(email.subject, 'status changed cwuser #%s (admin)' % u.eid)
+        self.assertEqual(email.subject, 'status changed CWUser #%s (admin)' % u.eid)
 
 if __name__ == '__main__':
     unittest_main()
--- a/web/test/unittest_breadcrumbs.py	Fri Oct 21 09:24:29 2011 +0200
+++ b/web/test/unittest_breadcrumbs.py	Fri Oct 21 09:24:48 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.
@@ -35,7 +35,7 @@
         l = []
         ibc.render(l.append)
         self.assertEqual(''.join(l),
-                          """<span id="breadcrumbs" class="pathbar">&#160;&gt;&#160;<a href="http://testing.fr/cubicweb/Folder">folder_plural</a>&#160;&gt;&#160;<a href="http://testing.fr/cubicweb/folder/%s" title="">par&amp;ent</a>&#160;&gt;&#160;
+                          """<span id="breadcrumbs" class="pathbar">&#160;&gt;&#160;<a href="http://testing.fr/cubicweb/Folder">Folder_plural</a>&#160;&gt;&#160;<a href="http://testing.fr/cubicweb/folder/%s" title="">par&amp;ent</a>&#160;&gt;&#160;
 <a href="http://testing.fr/cubicweb/folder/%s" title="">chi&amp;ld</a></span>""" % (f1.eid, f2.eid))
 
 if __name__ == '__main__':