Lines Matching refs:mbox
44 def createMessage(self, dir, mbox=False): argument
53 if mbox:
67 self.mbox = mailbox.Maildir(test_support.TESTFN)
68 self.assertTrue(len(self.mbox) == 0)
69 self.assertTrue(self.mbox.next() is None)
70 self.assertTrue(self.mbox.next() is None)
74 self.mbox = mailbox.Maildir(test_support.TESTFN)
75 self.assertTrue(len(self.mbox) == 1)
76 msg = self.mbox.next()
79 self.assertTrue(self.mbox.next() is None)
80 self.assertTrue(self.mbox.next() is None)
84 self.mbox = mailbox.Maildir(test_support.TESTFN)
85 self.assertTrue(len(self.mbox) == 1)
86 msg = self.mbox.next()
89 self.assertTrue(self.mbox.next() is None)
90 self.assertTrue(self.mbox.next() is None)
95 self.mbox = mailbox.Maildir(test_support.TESTFN)
96 self.assertTrue(len(self.mbox) == 2)
97 msg = self.mbox.next()
100 msg = self.mbox.next()
103 self.assertTrue(self.mbox.next() is None)
104 self.assertTrue(self.mbox.next() is None)