server/test/unittest_msplanner.py
changeset 8696 0bb18407c053
parent 8694 d901c36bcfce
child 9168 0fb4b67bde58
equal deleted inserted replaced
8695:358d8bed9626 8696:0bb18407c053
   147         plan = self._prepare_plan(rql, kwargs)
   147         plan = self._prepare_plan(rql, kwargs)
   148         union = plan.rqlst
   148         union = plan.rqlst
   149         plan.preprocess(union)
   149         plan.preprocess(union)
   150         ppi = PartPlanInformation(plan, union.children[0])
   150         ppi = PartPlanInformation(plan, union.children[0])
   151         for sourcevars in ppi._sourcesterms.itervalues():
   151         for sourcevars in ppi._sourcesterms.itervalues():
   152             for var in sourcevars.keys():
   152             for var in list(sourcevars):
   153                 solindices = sourcevars.pop(var)
   153                 solindices = sourcevars.pop(var)
   154                 sourcevars[var._ms_table_key()] = solindices
   154                 sourcevars[var._ms_table_key()] = solindices
   155         self.assertEqual(ppi._sourcesterms, sourcesterms)
   155         self.assertEqual(ppi._sourcesterms, sourcesterms)
   156         self.assertEqual(ppi.needsplit, needsplit)
   156         self.assertEqual(ppi.needsplit, needsplit)
   157 
   157