[tests] update repository tests with new `use_cwuri_as_url` attribute
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 27 Jun 2011 18:38:08 +0200
changeset 7563 8e129bb6b571
parent 7562 cdef82ca9eab
child 7565 b355d9dd43df
[tests] update repository tests with new `use_cwuri_as_url` attribute This attribute was intriduced by changeset 92fd4b777016
server/test/unittest_repository.py
--- a/server/test/unittest_repository.py	Mon Jun 27 15:30:52 2011 +0200
+++ b/server/test/unittest_repository.py	Mon Jun 27 18:38:08 2011 +0200
@@ -395,7 +395,10 @@
 
     def test_public_api(self):
         self.assertEqual(self.repo.get_schema(), self.repo.schema)
-        self.assertEqual(self.repo.source_defs(), {'system': {'type': 'native', 'uri': 'system'}})
+        self.assertEqual(self.repo.source_defs(), {'system': {'type': 'native',
+                                                              'uri': 'system',
+                                                              'use-cwuri-as-url': False}
+                                                  })
         # .properties() return a result set
         self.assertEqual(self.repo.properties().rql, 'Any K,V WHERE P is CWProperty,P pkey K, P value V, NOT P for_user U')