def test_bulk_conversion(self): statuses = Status.from_flags(['\\Answered', '\\Seen', '\\Recent', 'tag_a_custom']) self.assertEquals(set(['read', 'replied', 'recent']), statuses)
def status(self): return Status.from_flags(self.flags)
def with_status(self, flags): for status in Status.from_flags(flags): self.mail['status'].append(status) return self
def test_bulk_conversion(self): statuses = Status.from_flags( ['\\Answered', '\\Seen', '\\Recent', 'tag_a_custom']) self.assertEquals(set(['read', 'replied', 'recent']), statuses)