예제 #1
0
 def test_bulk_conversion(self):
     statuses = Status.from_flags(['\\Answered', '\\Seen', '\\Recent', 'tag_a_custom'])
     self.assertEquals(set(['read', 'replied', 'recent']), statuses)
예제 #2
0
 def status(self):
     return Status.from_flags(self.flags)
예제 #3
0
 def status(self):
     return Status.from_flags(self.flags)
예제 #4
0
 def with_status(self, flags):
     for status in Status.from_flags(flags):
         self.mail['status'].append(status)
     return self
예제 #5
0
 def test_bulk_conversion(self):
     statuses = Status.from_flags(
         ['\\Answered', '\\Seen', '\\Recent', 'tag_a_custom'])
     self.assertEquals(set(['read', 'replied', 'recent']), statuses)