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