Skip to content

Commit

Permalink
HM: Fixed test to always succeed
Browse files Browse the repository at this point in the history
  • Loading branch information
Hendrik Moree committed Sep 12, 2014
1 parent 26b773c commit a5bb8c6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions test/dedupfiltercollectortest.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,7 @@ def testCollectorFiltersTwoTimesTwoSimilarOneNot(self):
netDocIds = [c.keyForDocId(rawDocId).docId for rawDocId in rawDocIds]
identifiers = set(self.lucene._index.getDocument(doc).get(IDFIELD) for doc in netDocIds)
self.assertEquals(set(["urn:2", "urn:3", "urn:5"]), identifiers)
self.assertEquals(2, c.keyForDocId(netDocIds[0]).count)
self.assertEquals(1, c.keyForDocId(netDocIds[1]).count)
self.assertEquals(2, c.keyForDocId(netDocIds[2]).count)
self.assertEquals([1,2,2], list(sorted(c.keyForDocId(d).count for d in netDocIds)))

def testSilentyYieldsWrongResultWhenFieldNameDoesNotMatch(self):
self._addDocument("urn:1", 2)
Expand Down

0 comments on commit a5bb8c6

Please sign in to comment.