cubicweb/hooks/test/unittest_syncsession.py
changeset 11129 97095348b3ee
parent 11127 6464edfa95bb
parent 11057 0b59724cb3f2
child 11348 70337ad23145
--- a/cubicweb/hooks/test/unittest_syncsession.py	Thu Feb 11 21:59:49 2016 +0100
+++ b/cubicweb/hooks/test/unittest_syncsession.py	Wed Feb 17 13:45:34 2016 +0100
@@ -71,6 +71,15 @@
                 req.execute('INSERT CWProperty X: X pkey "ui.language", X value "hop"')
             self.assertEqual(cm.exception.errors, {'value-subject': u'unauthorized value'})
 
+    def test_vreg_propertyvalues_update(self):
+        self.vreg.register_property(
+            'test.int', type='Int', help='', sitewide=True)
+        with self.admin_access.repo_cnx() as cnx:
+            cnx.execute('INSERT CWProperty X: X pkey "test.int", X value "42"')
+            cnx.commit()
+        self.assertEqual(self.vreg.property_value('test.int'), 42)
+
+
 if __name__ == '__main__':
     from logilab.common.testlib import unittest_main
     unittest_main()