def METHOD_NAME(self):
    entries, _, __ = loader.load_string(self.test_doc)
    self.assertEqual(6, len(entries))
    link_entries = list(basicops.filter_link("apple", entries))
    self.assertEqual(2, len(link_entries))
    self.assertEqual(set(["apple"]), link_entries[0].links)
    link_entries = list(basicops.filter_link("banana", entries))
    self.assertEqual(2, len(link_entries))
    self.assertEqual(set(["banana"]), link_entries[0].links)
    link_entries = list(basicops.filter_link("cherry", entries))
    self.assertEqual(0, len(link_entries))