now raise UnknownProperty, not KeyError
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 08 Feb 2010 12:03:03 +0100
changeset 4493 c0a43c6ba777
parent 4492 150f1d57ecfd
child 4494 ccb7fce7297b
now raise UnknownProperty, not KeyError
web/test/unittest_viewselector.py
--- a/web/test/unittest_viewselector.py	Mon Feb 08 12:02:32 2010 +0100
+++ b/web/test/unittest_viewselector.py	Mon Feb 08 12:03:03 2010 +0100
@@ -5,7 +5,7 @@
 from logilab.common.testlib import unittest_main
 
 from cubicweb.devtools.testlib import CubicWebTC
-from cubicweb import CW_SOFTWARE_ROOT as BASE, Binary
+from cubicweb import CW_SOFTWARE_ROOT as BASE, Binary, UnknownProperty
 from cubicweb.selectors import (match_user_groups, implements,
                                 specified_etype_implements, rql_condition,
                                 traced_selection)
@@ -453,7 +453,7 @@
         self.assertEquals(self.vreg.property_value('boxes.edit_box.order'), 2)
         self.assertEquals(self.vreg.property_value('boxes.possible_views_box.visible'), False)
         self.assertEquals(self.vreg.property_value('boxes.possible_views_box.order'), 10)
-        self.assertRaises(KeyError, self.vreg.property_value, 'boxes.actions_box')
+        self.assertRaises(UnknownProperty, self.vreg.property_value, 'boxes.actions_box')