server/test/unittest_msplanner.py
changeset 2715 acdaf780d4a6
parent 2608 21856eda34f6
parent 2688 afa99d53401c
child 2773 b2530e3e0afb
child 2920 64322aa83a1d
equal deleted inserted replaced
2711:7aee3bd7a704 2715:acdaf780d4a6
  1960         self._test('Any X WHERE X eid %(x)s, X owned_by U, U eid %(u)s',
  1960         self._test('Any X WHERE X eid %(x)s, X owned_by U, U eid %(u)s',
  1961                    [('OneFetchStep', [('Any 999998 WHERE 999998 owned_by 999999', [{}])],
  1961                    [('OneFetchStep', [('Any 999998 WHERE 999998 owned_by 999999', [{}])],
  1962                      None, None, [self.system], {}, [])],
  1962                      None, None, [self.system], {}, [])],
  1963                    {'x': 999998, 'u': 999999})
  1963                    {'x': 999998, 'u': 999999})
  1964 
  1964 
       
  1965     def test_nonregr_identity_no_source_access(self):
       
  1966         repo._type_source_cache[999999] = ('CWUser', 'ldap', 999998)
       
  1967         self._test('Any S WHERE S identity U, S eid %(s)s, U eid %(u)s',
       
  1968                    [('OneFetchStep', [('Any 999999 WHERE 999999 identity 999999', [{}])],
       
  1969                      None, None, [self.system], {}, [])],
       
  1970                    {'s': 999999, 'u': 999999})
  1965 
  1971 
  1966 class MSPlannerTwoSameExternalSourcesTC(BasePlannerTC):
  1972 class MSPlannerTwoSameExternalSourcesTC(BasePlannerTC):
  1967     """test planner related feature on a 3-sources repository:
  1973     """test planner related feature on a 3-sources repository:
  1968 
  1974 
  1969     * 2 rql sources supporting Card
  1975     * 2 rql sources supporting Card