def test_bulk_conversion(self): tags = Tag.from_flags(["\\Answered", "\\Seen", "\\Recent", "tag_a_custom", "List"]) self.assertEquals(set([Tag("inbox"), Tag("a_custom")]), tags)
def all_tags(self): return Tag.from_flags(self._getFlags())
def _extract_tags(self): return Tag.from_flags(self.leap_mail.getFlags())