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