server/test/unittest_msplanner.py
changeset 3589 a5432f99f2d9
parent 3293 69c0ba095536
parent 3587 5b3725f315fc
child 3674 387d51af966d
--- a/server/test/unittest_msplanner.py	Wed Sep 30 18:57:42 2009 +0200
+++ b/server/test/unittest_msplanner.py	Wed Oct 07 12:31:08 2009 +0200
@@ -682,7 +682,7 @@
 
 
     def test_3sources_ambigous(self):
-        self._test('Any X,T WHERE X owned_by U, U login "syt", X title T',
+        self._test('Any X,T WHERE X owned_by U, U login "syt", X title T, X is IN(Bookmark, Card, EmailThread)',
                    [('FetchStep', [('Any X,T WHERE X title T, X is Card', [{'X': 'Card', 'T': 'String'}])],
                      [self.cards, self.system], None,
                      {'T': 'table0.C1', 'X': 'table0.C0', 'X.title': 'table0.C1'}, []),
@@ -1275,7 +1275,7 @@
                      None, None, [self.system], {}, [])])
 
     def test_has_text_3(self):
-        self._test('Any X WHERE X has_text "toto", X title "zoubidou"',
+        self._test('Any X WHERE X has_text "toto", X title "zoubidou", X is IN (Card, EmailThread)',
                    [('FetchStep', [(u'Any X WHERE X title "zoubidou", X is Card',
                                     [{'X': 'Card'}])],
                      [self.cards, self.system], None, {'X': 'table0.C0'}, []),
@@ -1299,7 +1299,7 @@
                     ])
 
     def test_ambigous_sort_func(self):
-        self._test('Any X ORDERBY DUMB_SORT(RF) WHERE X title RF',
+        self._test('Any X ORDERBY DUMB_SORT(RF) WHERE X title RF, X is IN (Bookmark, Card, EmailThread)',
                    [('AggrStep', 'Any X ORDERBY DUMB_SORT(RF)',
                      None, None, 'table0', None,
                      [('FetchStep', [('Any X,RF WHERE X title RF, X is Card',