server/test/unittest_msplanner.py
branchstable
changeset 2114 862f27d94af4
parent 2108 b3f6fa7ad59f
child 2165 dd40c375044e
--- a/server/test/unittest_msplanner.py	Tue Jun 16 14:15:18 2009 +0200
+++ b/server/test/unittest_msplanner.py	Wed Jun 17 20:46:37 2009 +0200
@@ -2118,6 +2118,15 @@
                      None, None, [self.vcs], {}, [])
                     ])
 
+    def test_nonregr_fully_simplified_extsource(self):
+        self.repo._type_source_cache[999998] = ('Note', 'vcs', 999998)
+        self.repo._type_source_cache[999999] = ('Note', 'vcs', 999999)
+        self.repo._type_source_cache[1000000] = ('Note', 'system', 1000000)
+        self._test('DISTINCT Any T,FALSE,L,M WHERE L eid 1000000, M eid 999999, T eid 999998',
+                   [('OneFetchStep', [('DISTINCT Any 999998,FALSE,1000000,999999', [{}])],
+                     None, None, [self.system], {}, [])
+                    ])
+
 
 if __name__ == '__main__':
     from logilab.common.testlib import unittest_main