server/test/unittest_msplanner.py
changeset 2715 acdaf780d4a6
parent 2608 21856eda34f6
parent 2688 afa99d53401c
child 2773 b2530e3e0afb
child 2920 64322aa83a1d
--- a/server/test/unittest_msplanner.py	Thu Aug 06 09:04:26 2009 +0200
+++ b/server/test/unittest_msplanner.py	Thu Aug 06 09:51:52 2009 +0200
@@ -1962,6 +1962,12 @@
                      None, None, [self.system], {}, [])],
                    {'x': 999998, 'u': 999999})
 
+    def test_nonregr_identity_no_source_access(self):
+        repo._type_source_cache[999999] = ('CWUser', 'ldap', 999998)
+        self._test('Any S WHERE S identity U, S eid %(s)s, U eid %(u)s',
+                   [('OneFetchStep', [('Any 999999 WHERE 999999 identity 999999', [{}])],
+                     None, None, [self.system], {}, [])],
+                   {'s': 999999, 'u': 999999})
 
 class MSPlannerTwoSameExternalSourcesTC(BasePlannerTC):
     """test planner related feature on a 3-sources repository: