diff -r 41259e1f9d48 -r 001159e2e4f3 hooks/test/unittest_syncsession.py --- a/hooks/test/unittest_syncsession.py Fri Nov 09 15:27:40 2012 +0100 +++ b/hooks/test/unittest_syncsession.py Fri Nov 16 11:41:38 2012 +0100 @@ -1,5 +1,5 @@ # -*- coding: utf-8 -*- -# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved. # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This file is part of CubicWeb. @@ -31,11 +31,11 @@ def test_unexistant_cwproperty(self): with self.assertRaises(ValidationError) as cm: self.execute('INSERT CWProperty X: X pkey "bla.bla", X value "hop", X for_user U') - cm.exception.tr(unicode) + cm.exception.translate(unicode) self.assertEqual(cm.exception.errors, {'pkey-subject': 'unknown property key bla.bla'}) with self.assertRaises(ValidationError) as cm: self.execute('INSERT CWProperty X: X pkey "bla.bla", X value "hop"') - cm.exception.tr(unicode) + cm.exception.translate(unicode) self.assertEqual(cm.exception.errors, {'pkey-subject': 'unknown property key bla.bla'}) def test_site_wide_cwproperty(self):