class TestComputeMapReduce(unittest.TestCase): layer = PLONEINTRANET_PAGERANK_INTEGRATION def setUp(self): self.app = self.layer['app'] self.portal = self.layer['portal'] self.compute = ComputeMapReduce(config.EDGE_WEIGHTS) def BROKEN_test_mapreduce_pageranks(self): ALL = self.compute.mapreduce_pageranks() seq = self._sorted_pagerank(ALL['tag:nix']) self.assertEqual(seq[:4], [('path:/plone/public/d1', 0.16), ('path:/plone/public', 0.11), ('tag:nix', 0.1), ('tag:foo', 0.08)])
def setUp(self): self.app = self.layer['app'] self.portal = self.layer['portal'] self.compute = ComputeMapReduce(config.EDGE_WEIGHTS)