Lines Matching refs:mbox
912 # two-second-plus-a-bit of the last one, just in case the mbox has
1124 _factory = lambda self, path, factory=None: mailbox.mbox(path, factory)
1135 self._box = mailbox.mbox(self._path, create=True)
2159 def createMessage(self, dir, mbox=False):
2168 if mbox:
2183 self.mbox = mailbox.Maildir(os_helper.TESTFN)
2184 #self.assertTrue(hasattr(self.mbox, "boxes"))
2185 #self.assertEqual(len(self.mbox.boxes), 0)
2186 self.assertIsNone(self.mbox.next())
2187 self.assertIsNone(self.mbox.next())
2191 self.mbox = mailbox.Maildir(os_helper.TESTFN)
2192 #self.assertEqual(len(self.mbox.boxes), 1)
2193 self.assertIsNotNone(self.mbox.next())
2194 self.assertIsNone(self.mbox.next())
2195 self.assertIsNone(self.mbox.next())
2199 self.mbox = mailbox.Maildir(os_helper.TESTFN)
2200 #self.assertEqual(len(self.mbox.boxes), 1)
2201 self.assertIsNotNone(self.mbox.next())
2202 self.assertIsNone(self.mbox.next())
2203 self.assertIsNone(self.mbox.next())
2208 self.mbox = mailbox.Maildir(os_helper.TESTFN)
2209 #self.assertEqual(len(self.mbox.boxes), 2)
2210 self.assertIsNotNone(self.mbox.next())
2211 self.assertIsNotNone(self.mbox.next())
2212 self.assertIsNone(self.mbox.next())
2213 self.assertIsNone(self.mbox.next())