def check_equal(self, sims1, sims2):
sims1 = dict(s[:<NUM_LIT:2>] for s in sims1)<EOL>sims2 = dict(s[:<NUM_LIT:2>] for s in sims2)<EOL>for docid in set(sims1.keys() + sims2.keys()):<EOL><INDENT>self.assertTrue(numpy.allclose(sims1.get(docid, <NUM_LIT:0.0>), sims2.get(docid, <NUM_LIT:0.0>), atol=<NUM_LIT>))<EOL><DEDENT>
Check that two returned lists of similarities are equal.