def test_postings_list(self):

        for term in self.golden_postings:    
            translated_postings = {
                self.sim_index.docid_to_name(docid): freq
                    for (docid, freq) in
                            self.sim_index.postings_list(term)
                }
            self.assertEqual(translated_postings,
                             self.golden_postings[term])
Test postings_list() using known data
dataset/ETHPy150Open taherh/pysimsearch/pysimsearch/test/sim_index_test.py/SimIndexTest.test_postings_list