def test_custom_tags_containing_our_prefix_are_handled(self):
     tag = Tag.from_flag("tag_tag_work_tag_")
     self.assertEquals(Tag("tag_work_tag_"), tag)
 def test_leap_flags_that_are_custom_tags_are_handled(self):
     tag = Tag.from_flag("tag_work")
     self.assertEquals(Tag("work"), tag)
 def test_leap_deleted_flag_is_translated_to_trash_tag(self):
     tag = Tag.from_flag("\\Deleted")
     self.assertEquals(Tag("trash"), tag)
 def test_leap_draft_flag_is_translated_to_draft_tag(self):
     tag = Tag.from_flag("\\Draft")
     self.assertEquals(Tag("drafts"), tag)
 def test_leap_recent_flag_is_translated_to_inbox_tag(self):
     tag = Tag.from_flag("\\Recent")
     self.assertEquals(Tag("inbox"), tag)