# HG changeset patch # User Sylvain Thénault # Date 1309192688 -7200 # Node ID 8e129bb6b5714d81cb95c1cf0e32382670f5fb2e # Parent cdef82ca9eab252af4adecac57c80588aa8a8532 [tests] update repository tests with new `use_cwuri_as_url` attribute This attribute was intriduced by changeset 92fd4b777016 diff -r cdef82ca9eab -r 8e129bb6b571 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')