def setUp(self): objs = [(str(k), v) for k, v in self.data.items()] self.index = SimhashIndexWithMongo(objs, k=10)